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. Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
This commit is contained in:
parent
7f57e72520
commit
931881f27a
|
@ -42,7 +42,7 @@ fi
|
|||
|
||||
rm -f .lock
|
||||
|
||||
if [ -z "${@}" ]
|
||||
if [ -z "${*}" ]
|
||||
then
|
||||
ARGUMENTS="--all"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue