"$@" does not expand correctly in test expressions, use "$*" instead (issue #181)

This commit is contained in:
Trammell Hudson 2017-04-11 06:31:25 -04:00
parent c19193d7c6
commit 51ecbdc8cb
Failed to extract signature

View File

@ -33,7 +33,7 @@ if [ -z "$tpm_missing" ]; then
|| die "$MODULE: tpm extend failed"
fi
if [ ! -z "$@" -a -z "$tpm_missing" ]; then
if [ ! -z "$*" -a -z "$tpm_missing" ]; then
TMPFILE=/tmp/insmod.$$
echo "$@" > $TMPFILE
tpm extend -ix "$MODULE_PCR" -if $TMPFILE \