Skip to content

Commit d0e237c

Browse files
committed
bugfix
1 parent 5c7a87b commit d0e237c

7 files changed

+122
-75
lines changed

backup_settings.conf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ delete_folder=1
99
#存在已卸載應用操作(1刪除0移動)
1010
default_behavior=0
1111

12+
#自定義位置支持相對位置
1213
#自定義備份目錄輸出位置 (忽略為空將默認腳本路徑中)
1314
Output_path=
1415

16+
#自定義applist.txt位置
17+
list_location=
18+
1519
#自動更新腳本
1620
update=1
1721

@@ -28,7 +32,7 @@ Backup_user_data=1
2832
Backup_obb_data=1
2933

3034
#是否在應用數據備份好後備份自定義目錄
31-
backup_media=1
35+
backup_media=0
3236

3337
#假設你遇到列表輸出異常問題請將此設為1
3438
debug_list=0

tools/tools.sh

Lines changed: 113 additions & 63 deletions
Large diffs are not rendered by default.

備份應用.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ if [ -f "${0%/*}/tools/tools.sh" ]; then
44
conf_path="${0%/*}/backup_settings.conf"
55
. "${0%/*}/tools/tools.sh" | tee "$MODDIR/log.txt"
66
else
7-
echo "${0%/*}/tools/tools.sh遗失"
7+
echo "${0%/*}/tools/tools.sh遺失"
88
fi

備份自定義資料夾.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ if [ -f "${0%/*}/tools/tools.sh" ]; then
44
conf_path="${0%/*}/backup_settings.conf"
55
. "${0%/*}/tools/tools.sh" | tee "$MODDIR/log.txt"
66
else
7-
echo "${0%/*}/tools/tools.sh遗失"
7+
echo "${0%/*}/tools/tools.sh遺失"
88
fi

更新腳本機型列表.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

生成應用列表.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ if [ -f "${0%/*}/tools/tools.sh" ]; then
44
conf_path="${0%/*}/backup_settings.conf"
55
. "${0%/*}/tools/tools.sh" | tee "$MODDIR/log.txt"
66
else
7-
echo "${0%/*}/tools/tools.sh遗失"
7+
echo "${0%/*}/tools/tools.sh遺失"
88
fi

終止腳本.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
if [ -f "${0%/*}/tools/tools.sh" ]; then
22
MODDIR="${0%/*}"
3+
operate="kill_script"
34
[[ $(find "$MODDIR" -maxdepth 1 -name "*.zip" -type f 2>/dev/null) ]] && echo "警告!此腳本不能拿來更新腳本" && exit 2
45
. "$MODDIR/tools/tools.sh"
56
echoRgb "等待腳本停止中,請稍後....."

0 commit comments

Comments
 (0)