diff options
author | Yuta SATOH <nigoro.dev@gmail.com> | 2017-12-10 06:44:56 +0900 |
---|---|---|
committer | Yuta SATOH <nigoro.dev@gmail.com> | 2017-12-10 06:44:56 +0900 |
commit | 05c5df43befd234a462824bc4bd604c687ca4878 (patch) | |
tree | 41026aa0ec2e0b0d4b2b517eec5953da7226fe04 | |
parent | create_forcestage3.sh: remove unnecessary code. (diff) | |
download | gentoo-bsd-05c5df43befd234a462824bc4bd604c687ca4878.tar.gz gentoo-bsd-05c5df43befd234a462824bc4bd604c687ca4878.tar.bz2 gentoo-bsd-05c5df43befd234a462824bc4bd604c687ca4878.zip |
create_forcestage3.sh: use wget to get the old stage3.
-rwxr-xr-x | scripts/mkstages/create_forcestage3.sh | 6 |
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 |