summaryrefslogtreecommitdiff
path: root/tests/plain-needed.sh
diff options
context:
space:
mode:
authorBreno Rodrigues GuimarĂ£es <brenorg@gmail.com>2023-02-23 22:07:41 -0300
committerGitHub <noreply@github.com>2023-02-23 22:07:41 -0300
commit70a477a252420c3f6a2e8e8d4c63d557df4b7f46 (patch)
treea68dce23c94fe6250b8f3dc3c7ab8ada895e4d84 /tests/plain-needed.sh
parentafca68f86aa021c5cb991bb810db71eb6af89155 (diff)
parent69a7ae54d27513d7553b4d8bd77ade017e674e22 (diff)
downloadpatchelf-70a477a252420c3f6a2e8e8d4c63d557df4b7f46.tar.gz
Merge branch 'NixOS:master' into breno.457
Diffstat (limited to 'tests/plain-needed.sh')
-rwxr-xr-xtests/plain-needed.sh8
1 files changed, 4 insertions, 4 deletions
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