This commit is contained in:
YAWAsau
2021-10-22 22:59:04 +08:00
parent a77a1b3684
commit 219775d174
22 changed files with 1299 additions and 0 deletions

14
tools/script/Get_DirName Normal file
View File

@@ -0,0 +1,14 @@
#!/system/bin/sh
MODDIR="${0%/*}"
bin_path="$MODDIR/bin"
[[ ! -d $bin_path ]] && echo "$bin_path目錄遺失" && exit 1
txt="$MODDIR/應用列表.txt"
. "$bin_path/bin.sh"
echo "#不需要恢復還原的應用請在開頭注釋# 比如#xxxxxxxx 酷安">"$txt"
find "$MODDIR" -maxdepth 1 -type d | sort | sed 's/\[/ /g ; s/\]//g' | while read; do
case ${REPLY##*/} in
媒體|backup_*|Backup_*|bin) ;;
*) echo "${REPLY##*/}">>"$txt" ;;
esac
done
echoRgb "$txt重新生成"