Use ${*} instead of ${@} for checking for no arguments in lh_clean.
${@} expands to "<arg1>" "<arg2>" ... etc., which causes the -z test to encounter too many arguments and thus fail with an error.
This commit is contained in:
parent
9c9dfb24b8
commit
20da312cd1
|
@ -42,7 +42,7 @@ fi
|
||||||
|
|
||||||
rm -f .lock
|
rm -f .lock
|
||||||
|
|
||||||
if [ -z "${@}" ]
|
if [ -z "${*}" ]
|
||||||
then
|
then
|
||||||
ARGUMENTS="--all"
|
ARGUMENTS="--all"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue