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
commit8f3d637d32ec4d9e21fa860229d9b9b16d4dec43 (patch)
tree0ff001bc1d0c2e8ab1acc3da219553905408a69c /scripts/bootstrap-new.sh
parentinitial import (diff)
downloadgentoo-2-8f3d637d32ec4d9e21fa860229d9b9b16d4dec43.tar.gz
gentoo-2-8f3d637d32ec4d9e21fa860229d9b9b16d4dec43.tar.bz2
gentoo-2-8f3d637d32ec4d9e21fa860229d9b9b16d4dec43.zip
Added extra [ ] around RESUME variable check.
Diffstat (limited to 'scripts/bootstrap-new.sh')
-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