Skip to content

Commit 4a670a7

Browse files
committed
fix shellcheck
1 parent f163e8d commit 4a670a7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/set-interpreter-same.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ mkdir -p "${SCRATCH}"
1212
cp simple "${SCRATCH}"/
1313

1414
echo "set the same interpreter as the current one"
15-
before_checksum=$(sha256sum ${SCRATCH}/simple)
15+
before_checksum=$(sha256sum "${SCRATCH}/simple")
1616
../src/patchelf --set-interpreter "${curInterpreter}" "${SCRATCH}/simple"
17-
after_checksum=$(sha256sum ${SCRATCH}/simple)
17+
after_checksum=$(sha256sum "${SCRATCH}/simple")
1818

1919
if [ "$before_checksum" != "$after_checksum" ]; then
2020
echo "--set-interpreter should be NOP, but the file has been changed."
2121
exit 1
2222
fi
2323

24-
${SCRATCH}/simple
24+
"${SCRATCH}/simple"
2525

2626
dummyInterpreter="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
2727

2828
echo "set the dummy interpreter"
29-
before_checksum=$(sha256sum ${SCRATCH}/simple)
29+
before_checksum=$(sha256sum "${SCRATCH}/simple")
3030
../src/patchelf --set-interpreter "${dummyInterpreter}" "${SCRATCH}/simple"
31-
after_checksum=$(sha256sum ${SCRATCH}/simple)
31+
after_checksum=$(sha256sum "${SCRATCH}/simple")
3232

3333
if [ "$before_checksum" = "$after_checksum" ]; then
3434
echo "--set-interpreter should be run, but the file has not been changed."
@@ -41,9 +41,9 @@ if "${SCRATCH}/simple"; then
4141
fi
4242

4343
echo "set the same interpreter as the current one"
44-
before_checksum=$(sha256sum ${SCRATCH}/simple)
44+
before_checksum=$(sha256sum "${SCRATCH}/simple")
4545
../src/patchelf --set-interpreter "${dummyInterpreter}" "${SCRATCH}/simple"
46-
after_checksum=$(sha256sum ${SCRATCH}/simple)
46+
after_checksum=$(sha256sum "${SCRATCH}/simple")
4747

4848
if [ "$before_checksum" != "$after_checksum" ]; then
4949
echo "--set-interpreter should be NOP, but the file has been changed."

0 commit comments

Comments
 (0)