From 769337c227799aa60911562b6940530f4a86eb3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 18 Nov 2024 12:39:57 +0100 Subject: [PATCH] fix shellcheck --- tests/set-interpreter-same.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/set-interpreter-same.sh b/tests/set-interpreter-same.sh index 88438c43..b174628e 100755 --- a/tests/set-interpreter-same.sh +++ b/tests/set-interpreter-same.sh @@ -12,23 +12,23 @@ mkdir -p "${SCRATCH}" cp simple "${SCRATCH}"/ echo "set the same interpreter as the current one" -before_checksum=$(sha256sum ${SCRATCH}/simple) +before_checksum=$(sha256sum "${SCRATCH}/simple") ../src/patchelf --set-interpreter "${curInterpreter}" "${SCRATCH}/simple" -after_checksum=$(sha256sum ${SCRATCH}/simple) +after_checksum=$(sha256sum "${SCRATCH}/simple") if [ "$before_checksum" != "$after_checksum" ]; then echo "--set-interpreter should be NOP, but the file has been changed." exit 1 fi -${SCRATCH}/simple +"${SCRATCH}/simple" dummyInterpreter="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" echo "set the dummy interpreter" -before_checksum=$(sha256sum ${SCRATCH}/simple) +before_checksum=$(sha256sum "${SCRATCH}/simple") ../src/patchelf --set-interpreter "${dummyInterpreter}" "${SCRATCH}/simple" -after_checksum=$(sha256sum ${SCRATCH}/simple) +after_checksum=$(sha256sum "${SCRATCH}/simple") if [ "$before_checksum" = "$after_checksum" ]; then echo "--set-interpreter should be run, but the file has not been changed." @@ -41,9 +41,9 @@ if "${SCRATCH}/simple"; then fi echo "set the same interpreter as the current one" -before_checksum=$(sha256sum ${SCRATCH}/simple) +before_checksum=$(sha256sum "${SCRATCH}/simple") ../src/patchelf --set-interpreter "${dummyInterpreter}" "${SCRATCH}/simple" -after_checksum=$(sha256sum ${SCRATCH}/simple) +after_checksum=$(sha256sum "${SCRATCH}/simple") if [ "$before_checksum" != "$after_checksum" ]; then echo "--set-interpreter should be NOP, but the file has been changed."