mirror of
https://github.com/LIV2/container-amiga-godbolt.git
synced 2025-12-06 00:32:47 +00:00
16 lines
341 B
Bash
Executable File
16 lines
341 B
Bash
Executable File
#!/bin/bash
|
|
set -e -u -x
|
|
|
|
if [[ $(arch) == "aarch64" ]]
|
|
then
|
|
NODE_ARCH=arm64
|
|
else
|
|
NODE_ARCH=x64
|
|
fi
|
|
NODE_TAR=node-${NODE_VERSION}-linux-${NODE_ARCH}.tar.xz
|
|
NODE_URL=https://nodejs.org/dist/${NODE_VERSION}/${NODE_TAR}
|
|
|
|
curl -fsSL ${NODE_URL} -o /tmp/${NODE_TAR}
|
|
tar -xJf /tmp/${NODE_TAR} -C /usr/local --strip-components=1
|
|
rm /tmp/${NODE_TAR}
|