Skip to content

Commit

Permalink
fix: properly parse cmdline args
Browse files Browse the repository at this point in the history
  • Loading branch information
mahyarmirrashed committed Dec 20, 2024
1 parent 00a42f1 commit c869d29
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"

0 comments on commit c869d29

Please sign in to comment.