megabit-os/bin/download
2020-07-21 01:34:15 +09:00

8 lines
261 B
Bash
Executable file

#!/bin/sh
# ベースのイメージをダウンロード
# Usage: bin/download version dist
# Required: curl
set -eu
base="http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/armhf"
curl "${base}/alpine-rpi-${1}-armhf.tar.gz" \
| tar xzf - -C "${2}"