summaryrefslogtreecommitdiff
path: root/helpers/lh_clean
diff options
context:
space:
mode:
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