diff options
Diffstat (limited to 'tests/no-rpath.sh')
-rwxr-xr-x | tests/no-rpath.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/no-rpath.sh b/tests/no-rpath.sh index 3efa7f1..7fe0372 100755 --- a/tests/no-rpath.sh +++ b/tests/no-rpath.sh @@ -1,21 +1,21 @@ #! /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 no-rpath ${SCRATCH}/ +cp no-rpath "${SCRATCH}/" -oldRPath=$(../src/patchelf --print-rpath ${SCRATCH}/no-rpath) +oldRPath=$(../src/patchelf --print-rpath "${SCRATCH}/no-rpath") if test -n "$oldRPath"; then exit 1; fi ../src/patchelf \ --set-interpreter "$(../src/patchelf --print-interpreter ../src/patchelf)" \ - --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx ${SCRATCH}/no-rpath + --set-rpath /foo:/bar:/xxxxxxxxxxxxxxx "${SCRATCH}/no-rpath" -newRPath=$(../src/patchelf --print-rpath ${SCRATCH}/no-rpath) +newRPath=$(../src/patchelf --print-rpath "${SCRATCH}/no-rpath") if ! echo "$newRPath" | grep -q '/foo:/bar'; then echo "incomplete RPATH" exit 1 fi -cd ${SCRATCH} && ./no-rpath +cd "${SCRATCH}" && ./no-rpath |