fix(sh): ${VAR:-val} and ${VAR-val} are different
Who would've thought? `:` means or empty, so: ```sh VAR= echo "${VAR-default}" # prints 'default' VAR='' echo "${VAR-default}" # prints '' VAR='' echo "${VAR:-default}" # prints 'default' ``` ;-; nothing wants to work
This commit is contained in:
parent
b0b4030759
commit
cd38cd76fd
3 changed files with 6 additions and 6 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
set -eu
|
||||
|
||||
util_path="${GITHUB_ACTION_PATH-.}/utils.sh"
|
||||
util_path="${GITHUB_ACTION_PATH:-.}/utils.sh"
|
||||
|
||||
# shellcheck source=utils.sh
|
||||
. "${util_path}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue