From 526ff5f1b74b561d9d485e06b84d3a65b0133e4d Mon Sep 17 00:00:00 2001 From: YAWAsau <229953100a@gmail.com> Date: Sat, 20 Nov 2021 15:41:41 +0800 Subject: [PATCH] bug fix --- 更新腳本.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/更新腳本.sh b/更新腳本.sh index f8009ad..23945db 100644 --- a/更新腳本.sh +++ b/更新腳本.sh @@ -58,10 +58,10 @@ if [[ $result = 0 ]]; then cp -r "$MODDIR/更新腳本.sh" "$backup_path/更新腳本.sh" [[ -d $backup_path/媒體 ]] && cp -r "$tools_path/script/restore3" "$backup_path/媒體/恢復多媒體數據.sh" find "$MODDIR" -maxdepth 2 -type d | sort | while read; do - if [[ -f $zippath/app_details ]]; then + if [[ -f $REPLY/app_details ]]; then unset PackageName - . "$zippath/app_details" - [[ $PackageName != "" ]] && cp -r "$tools_path/script/restore2" "$zippath/還原備份.sh" + . "$REPLY/app_details" + [[ $PackageName != "" ]] && cp -r "$tools_path/script/restore2" "$REPLY/還原備份.sh" fi done fi