Files
backup_script/終止腳本.sh
Yawasau 34ff82b5f6 bugfix
2023-11-09 21:45:45 +08:00

11 lines
506 B
Bash

if [ -f "${0%/*}/tools/bin/tools.sh" ]; then
MODDIR="${0%/*}"
[[ $(find "$MODDIR" -maxdepth 1 -name "*.zip" -type f 2>/dev/null) ]] && echo "警告!此腳本不能拿來更新腳本" && exit 2
. "$MODDIR/tools/bin/tools.sh"
echoRgb "等待腳本停止中,請稍後....."
kill_Serve && echoRgb "腳本終止"
exit
else
[[ $(echo "${0%/*}" | grep -o 'bin.mt.plus/temp') != "" ]] && echo "你媽沒告訴你腳本要解壓縮嗎?傻逼玩兒" && exit 2
echo "${0%/*}/tools/bin/tools.sh遺失"
fi