diff --git a/ci/local.sh b/ci/local.sh index 5adc233..ff03f7b 100755 --- a/ci/local.sh +++ b/ci/local.sh @@ -144,8 +144,8 @@ derive_branch() { return fi local b - if b="$(git -C "$REPO_ROOT" rev-parse --abbrev-ref HEAD 2>/dev/null)" \ - && [ -n "$b" ] && [ "$b" != "HEAD" ]; then + if b="$(git -C "$REPO_ROOT" rev-parse --abbrev-ref HEAD 2>/dev/null)" && + [ -n "$b" ] && [ "$b" != "HEAD" ]; then printf '%s' "$b" return fi