From 05c5df43befd234a462824bc4bd604c687ca4878 Mon Sep 17 00:00:00 2001 From: Yuta SATOH Date: Sun, 10 Dec 2017 06:44:56 +0900 Subject: create_forcestage3.sh: use wget to get the old stage3. --- scripts/mkstages/create_forcestage3.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/mkstages/create_forcestage3.sh b/scripts/mkstages/create_forcestage3.sh index 26210d9..a70a174 100755 --- a/scripts/mkstages/create_forcestage3.sh +++ b/scripts/mkstages/create_forcestage3.sh @@ -40,7 +40,11 @@ prepare(){ if [[ "${OLDSTAGE3}" =~ ^http ]]; then if [[ ! -e /tmp/$(basename ${OLDSTAGE3}) ]]; then cd /tmp - fetch "${OLDSTAGE3}" + if type -P wget &> /dev/null ; then + wget -q "${OLDSTAGE3}" + else + fetch "${OLDSTAGE3}" + fi fi else cp -a "${OLDSTAGE3}" /tmp -- cgit v1.2.3-65-gdbad