]> git.decadent.org.uk Git - dak.git/commitdiff
Fix default value assignment in get-w-b-db.
authorTorsten Werner <twerner@debian.org>
Fri, 11 Feb 2011 12:29:45 +0000 (13:29 +0100)
committerTorsten Werner <twerner@debian.org>
Fri, 11 Feb 2011 12:29:45 +0000 (13:29 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
scripts/nfu/get-w-b-db

index ae8fb1b990a64b22d527c8c60e183dce0d562057..57afc92cfbe0de7da171c79aeb3c6a47ac3851a8 100755 (executable)
@@ -31,9 +31,7 @@ export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars
 
 # For debugging, you can override the path using
 # the WB_DB_DIR enviroment variable
-if [ -z "$WB_DB_DIR" ]; then
-       WB_DB_DIR=${scriptdir}/nfu
-fi
+WB_DB_DIR=${WB_DB_DIR:-${scriptdir}/nfu}
 
 for arch in $(dak admin s-a list-arch unstable); do
     wget -q http://buildd.debian.org/stats/$arch-all.txt -O ${WB_DB_DIR}/${arch}-all.txt