audit-tmpdir: fix processing of files with spaces, quote variables

+1 -1
+1 -1
pkgs/build-support/setup-hooks/audit-tmpdir.sh
··· 27 fi 28 29 if isScript "$i"; then 30 - if [ -e "$(dirname $i)/.$(basename $i)-wrapped" ]; then 31 if grep -q -F "$TMPDIR" "$i"; then 32 echo "wrapper script $i contains a forbidden reference to $TMPDIR" 33 exit 1
··· 27 fi 28 29 if isScript "$i"; then 30 + if [ -e "$(dirname "$i")/.$(basename "$i")-wrapped" ]; then 31 if grep -q -F "$TMPDIR" "$i"; then 32 echo "wrapper script $i contains a forbidden reference to $TMPDIR" 33 exit 1