From d9f5f2e6ffcf043ad767b6d4195669a1285d31f5 Mon Sep 17 00:00:00 2001 From: Norbert Pocs Date: Thu, 6 Oct 2022 15:48:01 +0200 Subject: [PATCH] Fixing shellcheck errors The script patch had some shell errors. Related: rhbz#2026449 Signed-off-by: Norbert Pocs --- pkcs11_test_fix.patch | 78 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 67 insertions(+), 11 deletions(-) diff --git a/pkcs11_test_fix.patch b/pkcs11_test_fix.patch index 5af27fd..83ff4d2 100644 --- a/pkcs11_test_fix.patch +++ b/pkcs11_test_fix.patch @@ -1,17 +1,46 @@ diff --git a/tests/pkcs11/setup-softhsm-tokens.sh b/tests/pkcs11/setup-softhsm-tokens.sh -index 532c86a7..8a15c2e9 100755 +index 532c86a7..9050cea6 100755 --- a/tests/pkcs11/setup-softhsm-tokens.sh +++ b/tests/pkcs11/setup-softhsm-tokens.sh -@@ -41,8 +41,27 @@ if [ $ret -ne 0 ]; then +@@ -17,10 +17,10 @@ echo "OBJNAME: $OBJNAME" + echo "LOADPUBLIC: $LOADPUBLIC" + + # Create temporary directory for tokens +-install -d -m 0755 $TESTDIR/db ++install -d -m 0755 "$TESTDIR/db" + + # Create SoftHSM configuration file +-cat >$TESTDIR/softhsm.conf <"$TESTDIR/softhsm.conf" <