Commit 97c19af
committed
Fix post-install script failing on MacOS with unbound variable error
Fixes #90
The post-install script was failing when DDEV_UPSTREAM_PROVIDER was not
defined in the .env file. The script uses 'set -u' flag (via pipefail)
which treats unset variables as errors.
Changed the conditional check from '$DDEV_UPSTREAM_PROVIDER' to
'${DDEV_UPSTREAM_PROVIDER:-}' to use parameter expansion that provides
an empty string if the variable is unset, preventing the script from
failing when the variable doesn't exist.1 parent d772055 commit 97c19af
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
0 commit comments