mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
use parameter expansion
This commit is contained in:
parent
fa53488780
commit
4dbbc7dd2f
1 changed files with 4 additions and 7 deletions
|
|
@ -5,22 +5,19 @@ set -ex
|
||||||
# Create /dev/loop0 if it doesn't already exist. `losetup` has an issue creating it during the first run
|
# 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
|
mknod -m 0660 /dev/loop0 b 7 0 2>/dev/null || true
|
||||||
|
|
||||||
args=$@
|
for i
|
||||||
|
|
||||||
while (( "$#" ))
|
|
||||||
do
|
do
|
||||||
export "$1"
|
export ${i@Q}
|
||||||
shift
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Pull container
|
# Pull container
|
||||||
make container/${IMAGE_NAME}-${IMAGE_TAG} $@
|
make container/${IMAGE_NAME}-${IMAGE_TAG} $@
|
||||||
|
|
||||||
# Build base ISO
|
# Build base ISO
|
||||||
make boot.iso $args
|
make boot.iso $@
|
||||||
|
|
||||||
# Add container to ISO
|
# Add container to ISO
|
||||||
make build/deploy.iso $args
|
make build/deploy.iso $@
|
||||||
|
|
||||||
# Make output dir in github workspace
|
# Make output dir in github workspace
|
||||||
mkdir /github/workspace/build || true
|
mkdir /github/workspace/build || true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue