This commit is contained in:
Yawasau
2023-02-19 09:46:31 +08:00
parent 79677420fa
commit 244c322541
6 changed files with 52 additions and 39 deletions

View File

@@ -1,11 +1,10 @@
if [ -f "${0%/*}/tools/bin/bin.sh" ]; then
if [ -f "${0%/*}/tools/bin/tools.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"
. "$MODDIR/tools/bin/tools.sh"
echoRgb "等待腳本停止中,請稍後....."
kill_Serve && echoRgb "腳本終止"
exit
else
echo "$MODDIR/tools/bin/bin.sh遗失"
echo "$MODDIR/tools/bin/tools.sh遗失"
fi