From be4b84635f806998853825e23d94b14723e37b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 19 Feb 2023 08:55:11 +0100 Subject: tests: apply suggestions from shellcheck --- tests/plain-needed.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/plain-needed.sh') diff --git a/tests/plain-needed.sh b/tests/plain-needed.sh index 8967303..e44293b 100755 --- a/tests/plain-needed.sh +++ b/tests/plain-needed.sh @@ -1,14 +1,14 @@ #! /bin/sh set -e -SCRATCH=scratch/$(basename $0 .sh) +SCRATCH=scratch/$(basename "$0" .sh) MAIN_ELF="${SCRATCH}/main" PATCHELF="../src/patchelf" -rm -rf ${SCRATCH} -mkdir -p ${SCRATCH} -cp main ${SCRATCH}/ +rm -rf "${SCRATCH}" +mkdir -p "${SCRATCH}" +cp main "${SCRATCH}"/ echo "Confirming main requires libfoo" ${PATCHELF} --print-needed "${MAIN_ELF}" | grep -q libfoo.so -- cgit v1.2.1