This commit is contained in:
YAWAsau
2021-12-08 21:02:50 +08:00
parent 54c2c8a774
commit 0dbda7f78e
2 changed files with 1 additions and 2 deletions

View File

@@ -1,9 +1,7 @@
MODDIR="${0%/*}"
tools_path="$MODDIR/tools"
bin_path="$tools_path/bin"
script_path="$tools_path/script"
[[ ! -d $tools_path ]] && echo "$tools_path目錄遺失" && exit 1
[[ ! -d $script_path ]] && echo "$script_path目錄遺失" && exit 1
. "$bin_path/bin.sh"
find "$MODDIR" -maxdepth 2 -type d | sort | while read; do
if [[ -f $REPLY/app_details ]]; then

View File

@@ -19,6 +19,7 @@ for launcher_app in $launcher_app; do
done
isBoolean "$path" && txtpath="$nsx"
[[ $txtpath = true ]] && txtpath="$PWD" || txtpath="$MODDIR"
txtpath="${txtpath/'/storage/emulated/'/'/data/media/'}"
nametxt="$txtpath/應用列表.txt"
[[ ! -e $nametxt ]] && echo '#不需要備份的應用請在開頭注釋# 比如#酷安 xxxxxxxx\n#不需要備份數據比如酷安! xxxxxxxx應用名後方加一個驚嘆號即可 注意是應用名不是包名' >"$nametxt"
echo >>"$nametxt"