From c7a37c5effc876ec8d9879b4f9b6c2cf0dff268e Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Mon, 4 Mar 2024 21:04:42 -0500 Subject: [PATCH] use array --- entrypoint.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 81e17c8..f791d7e 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,23 +5,23 @@ set -ex # Create /dev/loop0 if it doesn't already exist. `losetup` has an issue creating it during the first run mknod -m 0660 /dev/loop0 b 7 0 2>/dev/null || true -args="" +args=() for i do key=$(echo ${i} | cut -d= -f1) value=$(echo ${i} | cut -d= -f2-) export ${key}="${value}" - args="${args} ${key}=\"${value}\"" + args+=("${key}=\"${value}\"") done # Pull container -make container/${IMAGE_NAME}-${IMAGE_TAG} $args +make container/${IMAGE_NAME}-${IMAGE_TAG} $args[@] # Build base ISO -make boot.iso $args +make boot.iso $args[@] # Add container to ISO -make build/deploy.iso $args +make build/deploy.iso $args[@] # Make output dir in github workspace mkdir /github/workspace/build || true