summaryrefslogtreecommitdiffstats
path: root/debootstrap
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@debian.org>2009-03-24 14:08:39 (GMT)
committerOtavio Salvador <otavio@debian.org>2009-03-24 14:08:39 (GMT)
commit258ab6d843596484bd25b5f308d811a4b5051137 (patch)
treef38de22e035efe703ea1d577dd9131c9590aa341 /debootstrap
parent0ca5dbf2b4c9d8e4999d994681fd0bb2ac4aa2c0 (diff)
downloaddebootstrap-258ab6d843596484bd25b5f308d811a4b5051137.zip
debootstrap-258ab6d843596484bd25b5f308d811a4b5051137.tar.gz
debootstrap-258ab6d843596484bd25b5f308d811a4b5051137.tar.bz2
Apply patch from Luca Favatella <slackydeb@gmail.com> to improve coding style.
r57962
Diffstat (limited to 'debootstrap')
-rwxr-xr-xdebootstrap8
1 files changed, 4 insertions, 4 deletions
diff --git a/debootstrap b/debootstrap
index cde6d9c..8ddac12 100755
--- a/debootstrap
+++ b/debootstrap
@@ -9,7 +9,7 @@ export PATH
###########################################################################
-if [ "$DEBOOTSTRAP_DIR" = "" ]; then
+if [ -z "$DEBOOTSTRAP_DIR" ]; then
if [ -x /debootstrap/debootstrap ]; then
DEBOOTSTRAP_DIR=/debootstrap
else
@@ -96,7 +96,7 @@ EOF
###########################################################################
-if [ "$PKGDETAILS" = "" ]; then
+if [ -z "$PKGDETAILS" ]; then
error 1 NO_PKGDETAILS "No pkgdetails available; either install perl, or build pkgdetails.c from source"
fi
@@ -299,14 +299,14 @@ if [ "$SECOND_STAGE_ONLY" = "true" ]; then
VARIANT=$(cat $DEBOOTSTRAP_DIR/variant)
SUPPORTED_VARIANTS="$VARIANT"
fi
- if [ "$CHROOTDIR" = "" ]; then
+ if [ -z "$CHROOTDIR" ]; then
TARGET=/
else
TARGET=$CHROOTDIR
fi
SCRIPT=$DEBOOTSTRAP_DIR/suite-script
else
- if [ "$1" = "" ] || [ "$2" = "" ]; then
+ if [ -z "$1" ] || [ -z "$2" ]; then
usage_err 1 NEEDSUITETARGET "You must specify a suite and a target."
fi
SUITE="$1"