summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuta SATOH <nigoro@gentoo.gr.jp>2015-07-12 16:49:47 +0900
committerYuta SATOH <nigoro@gentoo.gr.jp>2015-07-12 16:49:47 +0900
commit02f6bb63dd00fdd5181b885746f8bbf9e2abc7b5 (patch)
tree29998e8326940c29610e058035123db6bf74bdf8 /scripts
parentautomatic_updater.sh: binutils rebuild with lastest gcc. (diff)
downloadgentoo-bsd-02f6bb63dd00fdd5181b885746f8bbf9e2abc7b5.tar.gz
gentoo-bsd-02f6bb63dd00fdd5181b885746f8bbf9e2abc7b5.tar.bz2
gentoo-bsd-02f6bb63dd00fdd5181b885746f8bbf9e2abc7b5.zip
create_forcestage3.sh: added check OLDSTAGE3 file exists.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mkstages/create_forcestage3.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/mkstages/create_forcestage3.sh b/scripts/mkstages/create_forcestage3.sh
index 0d8954e..e30be09 100644
--- a/scripts/mkstages/create_forcestage3.sh
+++ b/scripts/mkstages/create_forcestage3.sh
@@ -17,7 +17,9 @@ prepare(){
fi
if [[ "${OLDSTAGE3}" =~ ^http ]]; then
- wget -P /tmp "${OLDSTAGE3}"
+ if [[ ! -e $(basename ${OLDSTAGE3}) ]]; then
+ wget -P /tmp "${OLDSTAGE3}"
+ fi
else
cp "${OLDSTAGE3}" /tmp
fi