From d9114716a5602eb03ea853e90ca77b03d22ea6c1 Mon Sep 17 00:00:00 2001 From: sea-snake Date: Mon, 13 Jan 2025 23:35:14 +0100 Subject: [PATCH] Make env variable optional --- scripts/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build b/scripts/build index 3ea6308e7b..39c8e27819 100755 --- a/scripts/build +++ b/scripts/build @@ -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[@]}"