mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-21 09:31:51 +00:00
"$@" does not expand correctly in test expressions, use "$*" instead (issue #181)
This commit is contained in:
parent
c19193d7c6
commit
51ecbdc8cb
@ -33,7 +33,7 @@ if [ -z "$tpm_missing" ]; then
|
|||||||
|| die "$MODULE: tpm extend failed"
|
|| die "$MODULE: tpm extend failed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$@" -a -z "$tpm_missing" ]; then
|
if [ ! -z "$*" -a -z "$tpm_missing" ]; then
|
||||||
TMPFILE=/tmp/insmod.$$
|
TMPFILE=/tmp/insmod.$$
|
||||||
echo "$@" > $TMPFILE
|
echo "$@" > $TMPFILE
|
||||||
tpm extend -ix "$MODULE_PCR" -if $TMPFILE \
|
tpm extend -ix "$MODULE_PCR" -if $TMPFILE \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user