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
|
@ -38,7 +38,7 @@ has_report() {
|
|||
}
|
||||
|
||||
# If a base branch is not provided, use the default branch
|
||||
base_branch=${BASE_BRANCH-$(default_branch)}
|
||||
base_branch=${BASE_BRANCH:-$(default_branch)}
|
||||
|
||||
if [ "$(in_private_repo)" != 'true' ] && [ "$JOB_NAME" ]; then
|
||||
url=$(base_report_url "$base_branch")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue