mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 10:43:36 +00:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user