alpine-s6/fetch-platform-rootfs
2022-02-12 14:22:41 +00:00

18 lines
405 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
case $TARGETPLATFORM in
linux-arm64)
ARCH=aarch64
;;
*)
ARCH=amd64
;;
esac
DOWNLOAD="https://github.com/just-containers/s6-overlay/releases/download/$S6_OVERLAY_VERSION/s6-overlay-$ARCH.tar.xz"
wget "$DOWNLOAD"
sha256_name=SHA256_$ARCH && echo "${!sha256_name} /s6-overlay-$ARCH.tar.xz" | sha256sum -c - || exit 1
mv /s6-overlay-$ARCH.tar.xz /s6-overlay.tar.xz