From c10425233b7c96cd4849357feba399f1b595d072 Mon Sep 17 00:00:00 2001 From: Jakob Naucke Date: Tue, 20 Jul 2021 15:55:36 +0200 Subject: [PATCH] ci: expand $CI to nothing PR #2252 put `set -o nounset` in `ci/lib.sh`. It turns out that this won't work when `$CI` is unset (it is always set in CI). Expand `$CI` to nothing. Fixes: #2283 Signed-off-by: Jakob Naucke --- ci/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/lib.sh b/ci/lib.sh index ad013e8cbe..3c64db5952 100644 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -17,7 +17,7 @@ export branch="${target_branch:-main}" clone_tests_repo() { if [ -d "$tests_repo_dir" ]; then - [ -n "$CI" ] && return + [ -n "${CI:-}" ] && return pushd "${tests_repo_dir}" git checkout "${branch}" git pull