Skip to content

Commit

Permalink
fix(IDX): allow empty OVERRIDE_DIDC_CHECK
Browse files Browse the repository at this point in the history
This fixes bash errors when OVERRIDE_DIDC_CHECK is unset, by defaulting
it to the empty string. This is standard best practice with bash
variable and fixes test failures in some environments.
  • Loading branch information
nmattia committed Sep 27, 2024
1 parent a34cbd9 commit a6accfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bazel/candid.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def _did_git_test_impl(ctx):
set -xeuo pipefail
if [[ $OVERRIDE_DIDC_CHECK == "true" ]]; then
if [[ ${{OVERRIDE_DIDC_CHECK:-}} == "true" ]]; then
echo "Override didc check requested. Skipping didc_check."
exit 0
fi
Expand Down

0 comments on commit a6accfe

Please sign in to comment.