bug fix
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
MODDIR="${0%/*}"
|
MODDIR="${0%/*}"
|
||||||
tools_path="$MODDIR/tools"
|
tools_path="$MODDIR/tools"
|
||||||
bin_path="$tools_path/bin"
|
bin_path="$tools_path/bin"
|
||||||
script_path="$tools_path/script"
|
|
||||||
[[ ! -d $tools_path ]] && echo "$tools_path目錄遺失" && exit 1
|
[[ ! -d $tools_path ]] && echo "$tools_path目錄遺失" && exit 1
|
||||||
[[ ! -d $script_path ]] && echo "$script_path目錄遺失" && exit 1
|
|
||||||
. "$bin_path/bin.sh"
|
. "$bin_path/bin.sh"
|
||||||
find "$MODDIR" -maxdepth 2 -type d | sort | while read; do
|
find "$MODDIR" -maxdepth 2 -type d | sort | while read; do
|
||||||
if [[ -f $REPLY/app_details ]]; then
|
if [[ -f $REPLY/app_details ]]; then
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ for launcher_app in $launcher_app; do
|
|||||||
done
|
done
|
||||||
isBoolean "$path" && txtpath="$nsx"
|
isBoolean "$path" && txtpath="$nsx"
|
||||||
[[ $txtpath = true ]] && txtpath="$PWD" || txtpath="$MODDIR"
|
[[ $txtpath = true ]] && txtpath="$PWD" || txtpath="$MODDIR"
|
||||||
|
txtpath="${txtpath/'/storage/emulated/'/'/data/media/'}"
|
||||||
nametxt="$txtpath/應用列表.txt"
|
nametxt="$txtpath/應用列表.txt"
|
||||||
[[ ! -e $nametxt ]] && echo '#不需要備份的應用請在開頭注釋# 比如#酷安 xxxxxxxx\n#不需要備份數據比如酷安! xxxxxxxx應用名後方加一個驚嘆號即可 注意是應用名不是包名' >"$nametxt"
|
[[ ! -e $nametxt ]] && echo '#不需要備份的應用請在開頭注釋# 比如#酷安 xxxxxxxx\n#不需要備份數據比如酷安! xxxxxxxx應用名後方加一個驚嘆號即可 注意是應用名不是包名' >"$nametxt"
|
||||||
echo >>"$nametxt"
|
echo >>"$nametxt"
|
||||||
|
|||||||
Reference in New Issue
Block a user