diff --git a/reinstall.sh b/reinstall.sh deleted file mode 100644 index 3593328..0000000 --- a/reinstall.sh +++ /dev/null @@ -1,16 +0,0 @@ -#/bin/bash -len=$(git status |grep modified |wc | awk '{print $1}') -if [ "$len" -gt 0 ]; then - printf "\nYou have local modified files\n" - exit 1 -fi - -git pull --rebase -ps -ef |grep -v grep |grep ledis| awk '{print $2}'|xargs kill -9 - -go install ./... - -source ./dev.sh -nohup ledis-server & -day=$(ps aux|grep -v grep |grep ledis-server | awk '{print $9}') -printf "ledis-server 启动于 $day"