Skip to content

Commit 218812f

Browse files
committed
scripts/customize: improve echo feedback
shortened and clarified echo messages to prevent line wrapping or cutoff in limited terminal environments
1 parent ec3b4f7 commit 218812f

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

module/customize.sh

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ if [ "$MMRL" = "true" ] || { [ "$KSU" = "true" ] && [ "$KSU_VER_CODE" -ge 11998
7777

7878
for _ in $(seq 1 3); do
7979
for symbol in '-' '\' '|' '/'; do
80-
echo "[$symbol] Setting things up..."
80+
echo "[$symbol] Initializing..."
8181
sleep 0.1
8282
clear
8383
done
8484
done
8585
else
86-
echo "[*] Installing System App Nuker..."
86+
echo "[*] Initializing System App Nuker..."
8787
sleep 1.5 # sleep a bit to make it look like something is happening!!
8888
fi
8989

@@ -121,13 +121,12 @@ else
121121
tmpfs_xattr_supported=false
122122
fi
123123

124-
# check mounting system
125124
if check_magic_mount; then
126125
magic_mount=true
127-
echo "[+] Magic Mount manager detected."
126+
echo "[i] Magic mount detected (e.g. Magisk)."
128127
else
129128
magic_mount=false
130-
echo "[+] Detected an overlayfs-based root manager."
129+
echo "[i] No magic mount detected. Likely using overlayfs root manager."
131130
fi
132131
# set_config magic_mount $magic_mount
133132

@@ -148,18 +147,18 @@ if [ -f "/data/adb/modules/mountify/config.sh" ] && \
148147
if [ "$mountify_mounts" = "2" ] || \
149148
{ [ "$mountify_mounts" = "1" ] && grep -q "system_app_nuker" /data/adb/modules/mountify/modules.txt; }; then
150149
mountify_mounted=true
151-
echo "[!] This module will be mounted by the mountify module."
150+
echo "[✓] Mounting will be handled by the mountify module."
152151
rm -f "$MODPATH/skip_mountify"
153152
else
154-
echo "[!] This module will NOT be mounted by the mountify module."
153+
echo "[x] mountify module won't mount this module."
155154
fi
156155
fi
157156

158157
# fallback path
159158
# if mountify will not mount us but standalone script is supported
160159
if { [ "$mountify_active" = false ] || [ "$mountify_mounted" = false ]; } && \
161160
{ { [ "$overlay_supported" = true ] && [ "$tmpfs_xattr_supported" = true ]; } || [ "$magic_mount" = false ]; }; then
162-
echo "[+] Requirements met. Enabling standalone mountify script."
161+
echo "[+] Standalone mountify script enabled (requirements met)."
163162

164163
# skip mount (cuz standalone script will mount us)
165164
touch "$MODPATH/skip_mount"
@@ -174,11 +173,11 @@ echo ""
174173

175174
# migrate old things
176175
[ -f "$PERSIST_DIR/nuke_list.json" ] && {
177-
echo "[*] Migrating previous configuration..."
176+
echo "[*] nuke_list.json found. Migrating..."
178177
sh "$MODPATH/nuke.sh" update
179178
}
180179

181-
# migrate config (in case when it has a new value)
180+
# migrate config.sh (in case when it has a new value)
182181
# variable of the config is defined by sourcing the old config.sh and the script
183182
# value like uninstall_fallback would be persist, but mounting stuff would not.
184183
while IFS='=' read key _; do
@@ -195,19 +194,21 @@ while IFS='=' read key _; do
195194

196195
# call set_config with the key and its current value
197196
set_config "$key" "$val"
198-
echo "config: $key: $val"
197+
echo "[~] config: $key=$val"
199198
done < "$PERSIST_DIR/config.sh"
200-
echo "[*] Tip: You could edit config.sh in /data/adb/system_app_nuker/config.sh"
199+
echo "[i] Edit config at: $PERSIST_DIR/config.sh"
201200
echo ""
202-
echo "[✓] System App Nuker has been set up successfully."
203201

204202
# warn KSU or APatch user if module would not be mounted globally
205203
if { [ -n "$KSU" ] || [ -n "$APATCH" ]; } && \
206204
[ "$use_mountify_script" != true ] && [ "$mountify_mounted" != true ]; then
207-
echo "[!] Notice: KernelSU or APatch detected. Module will not be mounted globally."
208-
echo "[!] Tip: Disable 'unmount modules by default' to avoid problems."
205+
echo "[!] KSU/APatch detected. Module won’t mount globally."
206+
echo "[i] Hint: Turn off 'unmount by default' to fix that."
209207
fi
210208

209+
# success message
210+
echo "[✓] System App Nuker setup complete."
211+
211212
# give space before post-customize.sh manager thing
212213
echo ""
213214

0 commit comments

Comments
 (0)