summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2005-02-04 18:28:47 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2005-02-04 18:28:47 +0000
commit91cead20583004f1d752a1a9f3be34d883c75988 (patch)
tree7b46716351118c9c65bed65d59d4b9300ef79c16 /scripts
parentinitial import (diff)
downloadhistorical-91cead20583004f1d752a1a9f3be34d883c75988.tar.gz
historical-91cead20583004f1d752a1a9f3be34d883c75988.tar.bz2
historical-91cead20583004f1d752a1a9f3be34d883c75988.zip
Added extra [ ] around RESUME variable check.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bootstrap-new.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/bootstrap-new.sh b/scripts/bootstrap-new.sh
index c59a38ac28f5..acbe9495f10e 100644
--- a/scripts/bootstrap-new.sh
+++ b/scripts/bootstrap-new.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/scripts/bootstrap-new.sh,v 1.3 2005/02/04 16:26:45 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/scripts/bootstrap-new.sh,v 1.4 2005/02/04 18:28:47 wolf31o2 Exp $
# people who were here:
# (drobbins, 06 Jun 2003)
@@ -78,7 +78,7 @@ for opt in "$@" ; do
--resume|-r) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --usepkg --buildpkg";;
--verbose|-v) STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} -v"; V_ECHO=v_echo;;
--version)
- cvsver="$Header: /var/cvsroot/gentoo-x86/scripts/bootstrap-new.sh,v 1.3 2005/02/04 16:26:45 wolf31o2 Exp $"
+ cvsver="$Header: /var/cvsroot/gentoo-x86/scripts/bootstrap-new.sh,v 1.4 2005/02/04 18:28:47 wolf31o2 Exp $"
cvsver=${cvsver##*,v }
einfo "Gentoo ${GENTOO_VERS} bootstrap ${cvsver%%Exp*}"
exit 0
@@ -90,6 +90,7 @@ for opt in "$@" ; do
esac
done
+RESUME=0
if [[ -n ${STRAP_RUN} ]] ; then
if [ ${BOOTSTRAP_STAGE} -ge 4 ] ; then
echo
@@ -289,7 +290,7 @@ export USE="${ORIGUSE} bootstrap ${STAGE1_USE}"
# before fully bootstrapping.
if [ ${BOOTSTRAP_STAGE} -le 2 ] ; then
show_status 3 Emerging packages
- if [ ${RESUME} -eq 1 ] ; then
+ if [[ ${RESUME} -eq 1 ]] ; then
STRAP_EMERGE_OPTS="${STRAP_EMERGE_OPTS} --resume"
cp /var/run/bootstrap-mtimedb /var/cache/edb
else