From 236aa3ef0413ee3a9730dc265e6ff8761c1c484c Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Sat, 16 Nov 2024 16:35:18 +0100 Subject: [PATCH] Add quotes for some env vars. --- judge/compile.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/judge/compile.sh b/judge/compile.sh index 14d768b2ae..9d8abe898d 100755 --- a/judge/compile.sh +++ b/judge/compile.sh @@ -139,10 +139,10 @@ logmsg $LOG_INFO "starting compile" # shellcheck disable=SC2236 if [ ! -z "$ENTRY_POINT" ]; then - ENVIRONMENT_VARS="-V ENTRY_POINT=$ENTRY_POINT" + ENVIRONMENT_VARS="-V ENTRY_POINT=\"$ENTRY_POINT\"" fi if [ -n "$DEBUG" ]; then - ENVIRONMENT_VARS="$ENVIRONMENT_VARS -V DEBUG=$DEBUG" + ENVIRONMENT_VARS="$ENVIRONMENT_VARS -V DEBUG=\"$DEBUG\"" fi # First compile to 'source' then rename to 'program' to avoid problems with