Files
backup_script/終止腳本.sh
Yawasau 3a2ee01f25 bugfix
2022-11-30 22:49:56 +08:00

11 lines
395 B
Bash

if [ -f "${0%/*}/tools/bin/bin.sh" ]; then
MODDIR="${0%/*}"
bin_path="$MODDIR/tools/bin"
[[ $(find "$MODDIR" -maxdepth 1 -name "*.zip" -type f 2>/dev/null) ]] && echo "警告!此腳本不能拿來更新腳本" && exit 2
. "$MODDIR/tools/bin/bin.sh"
echoRgb "等待腳本停止中,請稍後....."
kill_Serve && echoRgb "腳本終止"
exit
else
echo "$MODDIR/tools/bin/bin.sh遗失"
fi