mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-15 01:07:32 +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:
parent
e18965eca4
commit
1ceead418e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue