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:
Jalil David Salamé Messina 2024-12-19 23:12:40 +01:00
parent b0b4030759
commit cd38cd76fd
Signed by: jalil
GPG key ID: F016B9E770737A0B
3 changed files with 6 additions and 6 deletions

View file

@ -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}"