summaryrefslogtreecommitdiff
path: root/helpers/lh_clean
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 13:59:18 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 13:59:18 +0200
commit04f8e669b49da796863e2f548620ee5f15494b2d (patch)
tree4c1ffd190d27b58b76b6c9827501f2f696df9dc2 /helpers/lh_clean
parent9f59f16c7c1da6cd227fa47897dc76bf8004cb8e (diff)
downloadvyos-live-build-04f8e669b49da796863e2f548620ee5f15494b2d.tar.gz
vyos-live-build-04f8e669b49da796863e2f548620ee5f15494b2d.zip
Adding forgotten handling of default case.
Diffstat (limited to 'helpers/lh_clean')
-rwxr-xr-xhelpers/lh_clean11
1 files changed, 9 insertions, 2 deletions
diff --git a/helpers/lh_clean b/helpers/lh_clean
index 0858a27ad..3fa8fc58a 100755
--- a/helpers/lh_clean
+++ b/helpers/lh_clean
@@ -35,7 +35,14 @@ Set_defaults
rm -f .lock
-for ARGUMENT in ${@}
+if [ -z "${@}" ]
+then
+ ARGUMENTS="all"
+else
+ ARGUMENTS="${@}"
+fi
+
+for ARGUMENT in ${ARGUMENTS}
do
case "${ARGUMENT}" in
all)
@@ -99,7 +106,7 @@ do
;;
*)
- "${0}" all
+ "${0}" --usage
;;
esac
done