summaryrefslogtreecommitdiffstats
path: root/functions
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 /functions
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 'functions')
-rw-r--r--functions10
1 files changed, 5 insertions, 5 deletions
diff --git a/functions b/functions
index 001018b..2aecd5d 100644
--- a/functions
+++ b/functions
@@ -251,7 +251,7 @@ get () {
fi
if [ -e "$2" ]; then
- if [ "$3" = "" ]; then
+ if [ -z "$3" ]; then
return 0
elif [ "$3" = nocache ]; then
rm -f "$2"
@@ -306,7 +306,7 @@ get () {
md5=""
fi
fi
- if [ "$md5" = "" ]; then
+ if [ -z "$md5" ]; then
[ "$dest2" = "$dest" ] || mv "$dest2" "$dest"
case "$typ" in
gz) gunzip "$dest" ;;
@@ -478,7 +478,7 @@ download_release_indices () {
done
COMPONENTS="$(echo $COMPONENTS)"
- if [ "$COMPONENTS" = "" ]; then
+ if [ -z "$COMPONENTS" ]; then
mv "$reldest" "$reldest.malformed"
error 1 INVALIDREL "Invalid Release file, no valid components"
fi
@@ -637,9 +637,9 @@ download_release () {
local pkgdest="$TARGET/$($DLDEST pkg "$SUITE" "$c" "$ARCH" "$m" "$path")"
if [ ! -e "$pkgdest" ]; then continue; fi
pkgs_to_get="$(download_debs "$m" "$pkgdest" $pkgs_to_get 5>&1 1>&6)"
- if [ "$pkgs_to_get" = "" ]; then break; fi
+ if [ -z "$pkgs_to_get" ]; then break; fi
done 6>&1
- if [ "$pkgs_to_get" = "" ]; then break; fi
+ if [ -z "$pkgs_to_get" ]; then break; fi
done
progress $dloaddebs $totaldebs DOWNDEBS "Downloading packages"
if [ "$pkgs_to_get" != "" ]; then