fix: handle unset UPDATE_CHANNEL variable in download_pulse function

Use parameter expansion to prevent 'unbound variable' error when UPDATE_CHANNEL is not set
This commit is contained in:
Pulse Monitor 2025-08-22 08:50:07 +00:00
parent e18965eca4
commit 1ceead418e

View file

@ -641,7 +641,7 @@ download_pulse() {
fi
else
# UPDATE_CHANNEL should already be set by main(), but set default if not
if [[ -z "${UPDATE_CHANNEL}" ]]; then
if [[ -z "${UPDATE_CHANNEL:-}" ]]; then
UPDATE_CHANNEL="stable"
# Allow override via command line