diff --git a/ci/test.sh b/ci/test.sh
index 64aa7728238053b60bd10f9a681fd2091f082258..95ef710172ea8fab3ecf2a0b64a088c6d0ef3789 100755
--- a/ci/test.sh
+++ b/ci/test.sh
@@ -14,7 +14,7 @@ main() {
 
   go tool cover -html=ci/out/coverage.prof -o=ci/out/coverage.html
 
-  if [[ ${CI} && ${GITHUB_REF-} == *master ]]; then
+  if [[ ${CI-} && ${GITHUB_REF-} == *master ]]; then
     local deployDir
     deployDir="$(mktemp -d)"
     cp ci/out/coverage.html "$deployDir/index.html"