Fix spec usage of softhsm helper

Output produced by helper is multiline starting with comment. Unless it
is enclosed in quotes, it will be concatenated into single line.

Fixes commit fa1631eef7
This commit is contained in:
Petr Menšík 2019-02-22 16:39:54 +01:00
parent ad76423202
commit bd6e8b8965
2 changed files with 3 additions and 2 deletions

View File

@ -805,7 +805,7 @@ sed -e '/^tp:.*-pkcs11/ d' -e '/^tp:\s*lwres/ d' \
%check %check
%if %{with PKCS11} %if %{with PKCS11}
# Tests require initialization of pkcs11 token # Tests require initialization of pkcs11 token
eval $(bash %{SOURCE48} -A "`pwd`/softhsm-tokens") eval "$(bash %{SOURCE48} -A "`pwd`/softhsm-tokens")"
%endif %endif
%if %{with UNITTEST} %if %{with UNITTEST}

View File

@ -4,8 +4,9 @@
# in custom location. Is useful to store tokens in non-standard location. # in custom location. Is useful to store tokens in non-standard location.
# #
# Output can be evaluated from bash, it will prepare it for usage of temporary tokens. # Output can be evaluated from bash, it will prepare it for usage of temporary tokens.
# Quotes around eval are mandatory!
# Recommended use: # Recommended use:
# eval $(bash setup-named-softhsm.sh -A) # eval "$(bash setup-named-softhsm.sh -A)"
# #
SOFTHSM2_CONF="$1" SOFTHSM2_CONF="$1"