Skip to content

Commit

Permalink
fix unbound variable
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinbui committed Oct 3, 2024
1 parent d396a25 commit b34fdf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/post-command
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fi
if [[ "${BUILDKITE_PLUGIN_CACHE_UPLOAD_CACHE:-true}" =~ (false|off|0) ]]; then
echo -e "${BK_LOG_PREFIX}⏭️ Cache upload is disabled. Skipping..."
exit 0
elif [[ "${BUILDKITE_PLUGIN_CACHE_UPLOAD_CACHE}" == "default-branch-only" ]]; then
elif [[ "${BUILDKITE_PLUGIN_CACHE_UPLOAD_CACHE:-true}" == "default-branch-only" ]]; then
if [[ ${BUILDKITE_BRANCH} != "${BUILDKITE_PIPELINE_DEFAULT_BRANCH}" ]]; then
echo -e "${BK_LOG_PREFIX}⏭️ Cache upload is disabled on non-default branches. Skipping..."
exit 0
Expand Down

0 comments on commit b34fdf0

Please sign in to comment.