This commit is contained in:
YAWAsau
2021-11-29 07:15:40 +08:00
parent 7c95465fc4
commit c5fd7ad78e
2 changed files with 5 additions and 2 deletions

View File

@@ -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"

View File

@@ -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}')"