Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGoderre committed May 14, 2024
1 parent 0608bca commit 92ec633
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,14 @@ function get_arch() {
s390x)
arch="s390x"
;;
arm64)
arch="amd64"
;;
aarch64)
aarch64 | arm64)
arch="arm64"
;;
armv7l)
arch="arm32v7"
;;
*)
echo "$0 does not support architecture ${arch} ... aborting"
echo "$0 does not support architecture ${arch:-unknown} ... aborting"
exit 1
;;
esac
Expand Down
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function update_node_version() {
(
cp "${template}" "${dockerfile}-tmp"
local fromprefix=""
if [ "${arch}" != "amd64" ]; then
if [ "${arch}" != "amd64" ] && [ ${arch} != "arm64" ]; then
fromprefix="${arch}\\/"
fi

Expand Down

0 comments on commit 92ec633

Please sign in to comment.