aboutsummaryrefslogtreecommitdiff
path: root/custom/install-archzfs
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-18 02:29:15 -0600
committerCraig Jennings <c@cjennings.net>2026-01-18 02:29:15 -0600
commitc941b6b797175b64566f43c97fd669a71d9a7871 (patch)
treef19b4f95e0224baf750a3344476e276fc3d2c6b6 /custom/install-archzfs
parent5bd18b6f6a3ea89c900549c530af2a256094b917 (diff)
downloadarchangel-c941b6b797175b64566f43c97fd669a71d9a7871.tar.gz
archangel-c941b6b797175b64566f43c97fd669a71d9a7871.zip
Fix unattended mode exit issue (return 0)
Bug: In gather_input(), the line `[[ -n "$WIFI_SSID" ]] && info "..."` returns exit code 1 when WIFI_SSID is empty. The subsequent bare `return` inherits this exit code, causing the script to exit with set -e. Fix: Use explicit `return 0` to ensure gather_input returns success.
Diffstat (limited to 'custom/install-archzfs')
-rwxr-xr-xcustom/install-archzfs2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/install-archzfs b/custom/install-archzfs
index ae9e793..6b62d90 100755
--- a/custom/install-archzfs
+++ b/custom/install-archzfs
@@ -170,7 +170,7 @@ gather_input() {
[[ -n "$RAID_LEVEL" ]] && info " RAID: $RAID_LEVEL"
info " SSH: $ENABLE_SSH"
[[ -n "$WIFI_SSID" ]] && info " WiFi: $WIFI_SSID"
- return
+ return 0
fi
echo ""