Skip to content

Commit

Permalink
fix: switch -z to -n (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored Mar 18, 2020
1 parent ae46fd0 commit 5719252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/gapic/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pushd $TEMP_GIT_GOOGLEAPIS
git clone --single-branch --branch master https://github.com/googleapis/googleapis.git .

set +x # WARNING: do not remove
if [[ -z "${INPUT_CACHE_SERVICE_ACCOUNT}" ]]; then
if [[ -n "${INPUT_CACHE_SERVICE_ACCOUNT}" ]]; then
echo -n "${INPUT_CACHE_SERVICE_ACCOUNT}" >$GOOGLE_APPLICATION_CREDENTIALS
echo "build --remote_http_cache=https://storage.googleapis.com/${INPUT_CACHE_BUCKET}" >>.bazelrc
echo "build --google_credentials=${GOOGLE_APPLICATION_CREDENTIALS}" >>.bazelrc
Expand Down

0 comments on commit 5719252

Please sign in to comment.