mirror of
https://github.com/alexhopeoconnor/dnsmasq-webui.git
synced 2026-10-03 22:12:00 +10:00
- Use set +e around env/grep/read so grep (no match), read (EOF), and [ -f ]/[ -s ] do not exit the script when no DNSMASQ_WEBUI_* or --set - Write env vars to temp file .env then read; only process when file exists and is non-empty - Add || true after [ -s CONFIG_SET_FILE ] && cat so empty CONFIG_SET_FILE does not trigger exit Fixes install/update with no config (e.g. plain --version/--update --dir) failing silently under sh (dash).