pull/105/head
Muhammad Atif Ali 2 years ago
parent abba1057da
commit 2dded9fe13

@ -9,11 +9,11 @@ fetch() {
dest="$1" dest="$1"
url="$2" url="$2"
if command -v curl; then if command -v curl; then
curl -sSL --fail "$url" -o "$dest" curl -sSL --fail "$${url}" -o "$${dest}"
elif command -v wget; then elif command -v wget; then
wget -O "$dest" "$url" wget -O "$${dest}" "$${url}"
elif command -v busybox; then elif command -v busybox; then
busybox wget -O "$dest" "$url" busybox wget -O "$${dest}" "$${url}"
else else
printf "curl, wget, or busybox is not installed. Please install curl or wget in your image.\n" printf "curl, wget, or busybox is not installed. Please install curl or wget in your image.\n"
exit 1 exit 1

Loading…
Cancel
Save