diff options
Diffstat (limited to 'tests/too-many-strtab.sh')
-rwxr-xr-x | tests/too-many-strtab.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/too-many-strtab.sh b/tests/too-many-strtab.sh index 3ef158f..96006a4 100755 --- a/tests/too-many-strtab.sh +++ b/tests/too-many-strtab.sh @@ -1,19 +1,19 @@ #! /bin/sh -e -SCRATCH=scratch/$(basename $0 .sh) +SCRATCH=scratch/$(basename "$0" .sh) -rm -rf ${SCRATCH} -mkdir -p ${SCRATCH} +rm -rf "${SCRATCH}" +mkdir -p "${SCRATCH}" -cp libtoomanystrtab.so ${SCRATCH}/ +cp libtoomanystrtab.so "${SCRATCH}"/ # Set a RUNPATH on the library -../src/patchelf --set-rpath '$ORIGIN' ${SCRATCH}/libtoomanystrtab.so +../src/patchelf --set-rpath "\$ORIGIN" "${SCRATCH}/libtoomanystrtab.so" # Check that patchelf is able to patch it again without crashing. Previously, # it will wrongly identify the lib as a static object because there was no # .dynamic section exitCode=0 -(../src/patchelf --set-rpath '$ORIGIN' ${SCRATCH}/libtoomanystrtab.so) || exitCode=$? +(../src/patchelf --set-rpath "\$ORIGIN" "${SCRATCH}/libtoomanystrtab.so") || exitCode=$? if test "$exitCode" != 0; then echo "bad exit code!" exit 1 |