3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #45396 from dtzWill/fix/audit-tmpdir-quote

audit-tmpdir: fix processing of files with spaces, quote variables
This commit is contained in:
Will Dietz 2018-08-21 15:21:36 -05:00 committed by GitHub
commit 9c35796ee3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ auditTmpdir() {
fi
if isScript "$i"; then
if [ -e "$(dirname $i)/.$(basename $i)-wrapped" ]; then
if [ -e "$(dirname "$i")/.$(basename "$i")-wrapped" ]; then
if grep -q -F "$TMPDIR" "$i"; then
echo "wrapper script $i contains a forbidden reference to $TMPDIR"
exit 1