This commit is contained in:
YAWAsau
2021-11-05 22:34:26 +08:00
parent 4976d3ab04
commit 09431669bd
4 changed files with 6 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ if [[ -d $(magisk --path 2>/dev/null) ]]; then
else
echo "Magisk busybox Path does not exist"
fi ; export PATH="$PATH"
backup_version="V11 2021/11/5-19:45"
backup_version="V11.2 2021/11/5-19:45"
#設置二進制命令目錄位置
[[ $bin_path = "" ]] && echo "未正確指定bin.sh位置" && exit 2
#bin_path="${bin_path/'/storage/emulated/'/'/data/media/'}"

View File

@@ -94,7 +94,7 @@ en=118
{
while [[ $i -le $r ]]; do
[[ $en -ge 229 ]] && en=118
echoRgb "恢複第$i個應用 總共$r個 剩下$((r-i))個應用"
echoRgb "恢複第$i/$r個應用 剩下$((r-i))個"
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}')"
Backup_folder="$MODDIR/$name1"
@@ -171,7 +171,7 @@ while [[ $i -le $r ]]; do
B="$(find "$Backup_folder2" -maxdepth 1 -name "*.tar*" -type f | wc -l)"
if [[ $branch = true ]]; then
find "$Backup_folder2" -maxdepth 1 -name "*.tar*" -type f | while read; do
echoRgb "恢復第$A個壓縮包 總共$B個 剩下$((B-A))個"
echoRgb "恢復第$A/$B個壓縮包 剩下$((B-A))個"
Release_data "$REPLY"
echoRgb "完成$((A*100/B))%" && let A++
done

View File

@@ -29,7 +29,7 @@ starttime1="$(date -u "+%s")"
A=1
B="$(find "$MODDIR" -maxdepth 1 -name "*.tar*" -type f | wc -l)"
find "$MODDIR" -maxdepth 1 -name "*.tar*" -type f | while read; do
echoRgb "恢復第$A個壓縮包 總共$B個 剩下$((B-A))個"
echoRgb "恢復第$A/$B個壓縮包 剩下$((B-A))個"
Release_data "$REPLY"
echoRgb "完成$((A*100/B))%" && let A++
done