diff --git a/update_gm.sh b/update_gm.sh index 4b3bcd1..c0fb6e4 100644 --- a/update_gm.sh +++ b/update_gm.sh @@ -1,5 +1,5 @@ #!/bin/bash - +. /etc/profile ######################################################################### # File Name: jl_gm_update.sh # Created on: 2019-09-04 10:54:43 @@ -7,7 +7,6 @@ # Last Modified: 2022-07-13 16:48:25 # Description: ######################################################################### -. /etc/profile BASE_DIR="/data/update/project/miduo_gm" #表文件地址,不同渠道用表不一样 @@ -19,13 +18,13 @@ ip=$2 file=txt/gm_ip.txt #excel -cd ${TABLE_DIR}/data_excel/ +cd ${TABLE_DIR}/data_excel/ || exit svn up -cd ${TABLE_DIR}/execl_to_txt/ +cd ${TABLE_DIR}/execl_to_txt/ || exit java -Dfile.encoding=UTF-8 -Djava.ext.dirs=./lib ExcelUtils #java -cd ${BASE_DIR}/ +cd ${BASE_DIR}/ || exit git pull mvn clean package