diff --git a/module/install_func.sh b/module/install_func.sh index f697e7b..d3fb37e 100644 --- a/module/install_func.sh +++ b/module/install_func.sh @@ -23,9 +23,6 @@ initialize() { echo "- Setting to visible..." rm -rf "$COMPATH/temp" NEW_MODID="$MODID" - if [ "$KSU" ] && [ -d "/data/adb/modules/.TA_utl" ]; then - touch "/data/adb/modules/.TA_utl/remove" - fi else mkdir -p "$COMPATH/temp/common" cp "$COMPATH/.default" "$COMPATH/temp/common/.default" diff --git a/module/post-fs-data.sh b/module/post-fs-data.sh index 17698dc..e348b16 100644 --- a/module/post-fs-data.sh +++ b/module/post-fs-data.sh @@ -16,9 +16,9 @@ if [ ! -d "$TS" ] || [ -f "$TS/remove" ]; then exit 1 fi -if [ -f "$TS/action.sh" ]; then - rm -f "$TS/action.sh" +if [ ! -d "$MODPATH/common/temp" ]; then + rm -rf "/data/adb/modules/.TA_utl" fi -if [ -d "$TS/webroot" ]; then - rm -rf "$TS/webroot" -fi \ No newline at end of file + +rm -f "$TS/action.sh" +rm -rf "$TS/webroot" \ No newline at end of file