1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

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

This commit is contained in:
Will Dietz 2018-08-20 12:44:29 -05:00
parent ac40184801
commit 79a86ca11c

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