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