This commit is contained in:
YAWAsau
2021-11-05 21:49:49 +08:00
parent e4722db208
commit 4976d3ab04
7 changed files with 9 additions and 9 deletions

View File

@@ -149,7 +149,7 @@ while [[ $i -le $r ]]; do
if [[ $Recovery_mode = true ]]; then
if [[ $(pm path "$name2") != "" ]]; then
#停止應用
[[ $name2 != $Open_apps ]] && am force-stop "$name2"
[[ $name1 != $Open_apps ]] && am force-stop "$name2"
find "$Backup_folder" -maxdepth 1 ! -name "apk.*" -name "*.tar*" -type f | sort | while read; do
Release_data "$REPLY"
done

View File

@@ -70,7 +70,7 @@ fi
if [[ $Recovery_mode = true ]]; then
if [[ $(pm path "$name") != "" ]]; then
#停止應用
[[ $name != $Open_apps ]] && am force-stop "$name"
[[ $name2 != $Open_apps ]] && am force-stop "$name"
find "$Backup_folder" -maxdepth 1 ! -name "apk.*" -name "*.tar*" -type f | sort | while read; do
tar_path="$REPLY"
X="$path2/$name"

View File

@@ -18,9 +18,9 @@ Release_data() {
FILE_NAME2="${FILE_NAME%%.*}"
echoRgb "恢復$FILE_NAME2數據" "2" && usertar="1"
case ${FILE_NAME##*.} in
lz4) pv "$1" | tar -I lz4 -xmPpf - ; Set_back ;;
zst) pv "$1" | tar -I zstd -xmPpf - ;;
tar) pv "$1" | tar -xmPpf - ;;
lz4) pv "$1" | tar -I lz4 -xPpf - ; Set_back ;;
zst) pv "$1" | tar -I zstd -xPpf - ;;
tar) pv "$1" | tar -xPpf - ;;
*) (echoRgb "$FILE_NAME 壓縮包不支持解壓縮" "0" ; Set_back)
esac
echo_log "$FILE_NAME 解壓縮($FILE_NAME2)"