diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-18 02:29:15 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-18 02:29:15 -0600 |
| commit | c941b6b797175b64566f43c97fd669a71d9a7871 (patch) | |
| tree | f19b4f95e0224baf750a3344476e276fc3d2c6b6 | |
| parent | 5bd18b6f6a3ea89c900549c530af2a256094b917 (diff) | |
| download | archangel-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.
| -rwxr-xr-x | custom/install-archzfs | 2 |
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 "" |
