diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rwxr-xr-x | pbuilder | 12 |
2 files changed, 9 insertions, 4 deletions
@@ -2,6 +2,7 @@ * pbuilder: modified clean target to load pbuilder-checkparams, instead of sourcing the config file directly. + Change the test to if conditions. 2002-05-07 Junichi Uekawa <dancer@debian.org> @@ -25,10 +25,14 @@ case "$1" in clean) shift; . /usr/lib/pbuilder/pbuilder-checkparams - echo "Cleaning [$BUILDPLACE]" - test -n "$BUILDPLACE" && rm -rf "$BUILDPLACE"/* || true - echo "Cleaning [$APTCACHE]" - test -n "$APTCACHE" && rm -rf "$APTCACHE"/* || true + if [ -n "$BUILDPLACE" ]; then + echo "Cleaning [$BUILDPLACE]" + rm -rf "$BUILDPLACE"/* || true + fi + if [ -n "$APTCACHE" ]; then + echo "Cleaning [$APTCACHE]" + rm -rf "$APTCACHE"/* || true + fi ;; login) shift |