diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 13:59:18 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:22:26 +0100 |
commit | d4a0e1ca8351cc5218fd4102a92e2b0281d35aa6 (patch) | |
tree | 4c1ffd190d27b58b76b6c9827501f2f696df9dc2 /helpers/lh_clean | |
parent | 56bb13cd0129cf97dd266441623c17c0fdd87f11 (diff) | |
download | vyos-live-build-d4a0e1ca8351cc5218fd4102a92e2b0281d35aa6.tar.gz vyos-live-build-d4a0e1ca8351cc5218fd4102a92e2b0281d35aa6.zip |
Adding forgotten handling of default case.
Diffstat (limited to 'helpers/lh_clean')
-rwxr-xr-x | helpers/lh_clean | 11 |
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 |