Skip to content

Commit

Permalink
tidy up location of args
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Sep 20, 2023
1 parent bd2cecb commit a16608f
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions build/root/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,24 @@
# exit script if return code != 0
set -e

# release tag name from build arg, stripped of build ver using string manipulation
# release tag name from buildx arg, stripped of build ver using string manipulation
RELEASETAG="${1//-[0-9][0-9]/}"

# note do NOT download build scripts - inherited from int script with envvars common defined
# target arch from buildx arg
TARGETARCH="${2}"

# detect image arch
####
if [[ -z "${RELEASETAG}" ]]; then
echo "[warn] Release tag name from build arg is empty, exiting script..."
exit 1
fi

if [[ -z "${TARGETARCH}" ]]; then
echo "[warn] Target architecture name from build arg is empty, exiting script..."
exit 1
fi

# note do NOT download build scripts - inherited from int script with envvars common defined

# get target arch from Dockerfile argument
TARGETARCH="${2}"

# pacman packages
####
Expand Down

0 comments on commit a16608f

Please sign in to comment.