This commit is contained in:
Yawasau
2022-05-08 17:15:37 +08:00
parent 89177fe26f
commit 5e844e379c

View File

@@ -223,6 +223,7 @@ backup)
C="$(cat "$txt" | grep -v "#" | sed -e '/^$/d' | sed -n '$=')"
if [[ $delete_folder = true ]]; then
if [[ -d $Backup ]]; then
if [[ $1 = "" ]]; then
echoRgb "腳本開始前檢查備份目錄中是否存在已經卸載應用" "3"
echoRgb "檢查到已卸載應用操作?\n -音量上刪除資料夾,下移動到其他處"
get_version "刪除" "移動到其他處" && operate="$branch"
@@ -256,6 +257,8 @@ backup)
done
fi
fi
fi
if [[ $1 = "" ]]; then
echoRgb "檢查備份列表中是否存在已經卸載應用" "3"
while [[ $D -le $C ]]; do
name1="$(cat "$txt" | grep -v "#" | sed -e '/^$/d' | sed -n "${D}p" | awk '{print $1}')"
@@ -267,6 +270,7 @@ backup)
let D++
done
echo "$(sed -e '/^$/d' "$txt")" >"$txt"
fi
r="$(cat "$txt" | grep -v "#" | sed -e '/^$/d' | sed -n '$=')"
[[ $1 != "" ]] && r=1
[[ $r = "" ]] && echoRgb "爬..appList.txt是空的或是包名被注釋了這樣備份個鬼" "0" && exit 1