diff --git a/tools/bin/bin.sh b/tools/bin/bin.sh index 96822b4..ef68b41 100644 --- a/tools/bin/bin.sh +++ b/tools/bin/bin.sh @@ -164,9 +164,11 @@ echoRgb "\n --------------歡迎使用⚡️🤟🐂纸備份--------------\n - bn=195 if [[ $script != "" && $(pgrep -f "$script" | grep -v grep | wc -l) -ge 2 ]]; then echoRgb "檢測到進程殘留,請重新執行腳本 已銷毀進程" "0" - pgrep -f "$script" | grep -v grep | while read i; do - [[ $i != "" ]] && kill -9 " $i" >/dev/null + { + pgrep -f "$script" | while read; do + kill -KILL " $REPLY" >/dev/null done + } & fi if [[ $(pm path ice.message) = "" ]]; then echoRgb "未安裝toast 開始安裝" "0" diff --git a/備份應用.sh b/備份應用.sh index f047bd3..1656cec 100644 --- a/備份應用.sh +++ b/備份應用.sh @@ -204,6 +204,7 @@ TIME="$starttime1" en=118 { while [[ $i -le $r ]]; do + sleep 90 [[ $en -ge 229 ]] && en=118 name1="$(cat "$txt" | grep -v "#" | sed -e '/^$/d' | sed -n "${i}p" | awk '{print $1}')" name2="$(cat "$txt" | grep -v "#" | sed -e '/^$/d' | sed -n "${i}p" | awk '{print $2}')"