Skip to content

Commit

Permalink
Make env variable optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-snake committed Jan 13, 2025
1 parent 9b22b5c commit d911471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function build_canister() {
echo Running cargo build "${cargo_build_args[@]}"
echo RUSTFLAGS: "$RUSTFLAGS"

[ -n "$II_OPENID_GOOGLE_CLIENT_ID" ] && export II_OPENID_GOOGLE_CLIENT_ID
[ -n "${II_OPENID_GOOGLE_CLIENT_ID:-}" ] && export II_OPENID_GOOGLE_CLIENT_ID

RUSTFLAGS="$RUSTFLAGS" cargo build "${cargo_build_args[@]}"

Expand Down

0 comments on commit d911471

Please sign in to comment.