Skip to content

Commit bf931fd

Browse files
author
杨利兵
committed
优化
1 parent a2d3d09 commit bf931fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cg

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if [ ! -f $CG_PATH ];then
1414
exit 1
1515
fi
1616

17+
# update
1718
do_update () {
18-
echo "updatet "
19-
curl https://raw.githubusercontent.com/excel-code-generator/code-generator/master/LICENSE|bash
19+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/excel-code-generator/code-generator/master/install.sh)"
2020
}
2121

2222
if [ "update" = "$1" ];then

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ VER=`curl --silent "$BASE_PATH/releases/latest" | sed 's#.*tag/\(.*\)".*#\1#'`
1515
echo "Latest version: $VER"
1616

1717
# download
18-
SH_FILE="$RAW_PATH/$VER/LICENSE"
18+
SH_FILE="$RAW_PATH/$VER/cg"
1919
JAR_FILE="$BASE_PATH/releases/download/$VER/cg.jar"
2020

2121
download_file() {

0 commit comments

Comments
 (0)