测试版本库,随便折腾。
李耀辉
2021-07-19 12d3483f9fa8671a85deca9bf446bde645c5f947
修改#2800的图纸,新增1个孔位。
修改#2801的效果图,新增jpg格式。
已修改3个文件
56 ■■■■■ 文件已修改
Coding/verysync-installer/go-install.sh 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ms.conf 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
new.txt 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Coding/verysync-installer/go-install.sh
@@ -1,51 +0,0 @@
#!/bin/bash
VERSION=1.0
TARFILE=verysync-linux-installer-${VERSION}.tar
TARURL=http://www.verysync.com/shell/verysync-linux-installer/$TARFILE
CURL=`command -v curl  2>/dev/null`
WGET=`command -v wget  2>/dev/null`
#######color code########
RED="31m"      # Error message
GREEN="32m"    # Success message
YELLOW="33m"   # Warning message
BLUE="36m"     # Info message
colorEcho(){
    COLOR=$1
    echo -e "\033[${COLOR}${@:2}\033[0m"
}
if [[ "$CURL" == "" && "$WGET" == "" ]]; then
    colorEcho ${RED} "Did not find the wget or curl command"
    exit 1;
fi
if [[ "$CURL" == "" ]]; then
    CURL="$WGET -k -O-"
else
    CURL="$CURL --connect-timeout 10 -k"
fi
colorEcho $GREEN "Downloading from $TARURL"
$CURL $TARURL > $TARFILE
if [[ $? -ne 0 ]]; then
    colorEcho ${RED} "Failed to fetch $TARURL Please check your network or try again."
    exit 3
fi
colorEcho $GREEN "Extracting installer"
mkdir -p verysync-installer
cd verysync-installer && tar xf "../$TARFILE"
if [[ $? -ne 0 ]]; then
    colorEcho ${RED} "Failed to extract verysync-installer."
    exit 4
fi
colorEcho $GREEN "Processing ..."
./go-inst.sh $@
ms.conf
@@ -1 +1,2 @@
1=msconfig
1=msconfig
2=哈哈
new.txt
@@ -1 +1 @@
this is a new file
this is a new file!