From 5fa45ae618919e13f08f0f9908c34f503efeb4cc Mon Sep 17 00:00:00 2001 From: James Swineson Date: Sun, 1 Sep 2019 23:28:27 +0800 Subject: [PATCH] use wget instead of curl --- menhera.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menhera.sh b/menhera.sh index ff39e43..730e842 100755 --- a/menhera.sh +++ b/menhera.sh @@ -58,7 +58,7 @@ menhera::get_rootfs() { # forgive me for parsing HTML with these shit # and hope it works - ROOTFS_TIME=$(curl -fsSL "https://images.linuxcontainers.org/images/debian/buster/amd64/default/?C=M;O=D" | grep -oP '(\d{8}_\d{2}:\d{2})' | head -n 1) + ROOTFS_TIME=$(wget -qO- "https://images.linuxcontainers.org/images/debian/buster/amd64/default/?C=M;O=D" | grep -oP '(\d{8}_\d{2}:\d{2})' | head -n 1) ROOTFS="https://images.linuxcontainers.org/images/debian/buster/amd64/default/${ROOTFS_TIME}/rootfs.squashfs" else @@ -94,7 +94,7 @@ menhera::prepare_environment() { mkdir -p "${WORKDIR}/overlayfs_workdir" echo "Downloading temporary rootfs..." - curl -L -C - -o "${WORKDIR}/rootfs.squashfs" "${ROOTFS}" + wget -O "${WORKDIR}/rootfs.squashfs" "${ROOTFS}" } menhera::mount_new_rootfs() {