This commit is contained in:
YAWAsau
2021-11-25 22:39:21 +08:00
parent 14345e1e4a
commit c4a5ba0cd0
4 changed files with 23 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
#!/system/bin/sh
MODDIR="${0%/*}"
tools_path="${MODDIR%/*}/tools"
tools_path="$MODDIR/tools"
bin_path="$MODDIR/tools/bin"
[[ ! -d $tools_path ]] && echo "$tools_path目錄遺失" && exit 1
[[ ! -d $bin_path ]] && echo "$bin_path目錄遺失" && exit 1

View File

@@ -1,7 +1,7 @@
#!/system/bin/sh
MODDIR="${0%/*}"
app_details="$MODDIR/app_details"
tools_path="${tools_path%/*}/tools"
tools_path="${MODDIR%/*}/tools"
bin_path="${MODDIR%/*}/tools/bin"
script="${0##*/}"
[[ ! -d $tools_path ]] && echo "$tools_path目錄遺失" && exit 1