From c869d29c26d3170de955ff56a9d32d383043a7b6 Mon Sep 17 00:00:00 2001 From: Mahyar Mirrashed Date: Thu, 19 Dec 2024 23:51:07 -0600 Subject: [PATCH] fix: properly parse cmdline args --- entrypoint.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index c690427..282d29d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,10 +3,7 @@ # Initialize an empty array to hold the arguments args=() -# Use a while loop to split INPUT_INCLUDES by spaces and handle each token -while IFS= read -r -d ' ' token; do - args+=("$token") -done <<<"$INPUT_INCLUDES " +IFS=' ' read -r -a args <<<"$1" # Pass the arguments array to your main script exec app "${args[@]}"