summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuta SATOH <nigoro.dev@gmail.com>2017-12-10 06:44:56 +0900
committerYuta SATOH <nigoro.dev@gmail.com>2017-12-10 06:44:56 +0900
commit05c5df43befd234a462824bc4bd604c687ca4878 (patch)
tree41026aa0ec2e0b0d4b2b517eec5953da7226fe04 /scripts
parentcreate_forcestage3.sh: remove unnecessary code. (diff)
downloadgentoo-bsd-05c5df43befd234a462824bc4bd604c687ca4878.tar.gz
gentoo-bsd-05c5df43befd234a462824bc4bd604c687ca4878.tar.bz2
gentoo-bsd-05c5df43befd234a462824bc4bd604c687ca4878.zip
create_forcestage3.sh: use wget to get the old stage3.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkstages/create_forcestage3.sh6
1 files changed, 5 insertions, 1 deletions
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