audit-tmpdir: fix processing of files with spaces, quote variables
This commit is contained in:
parent
ac40184801
commit
79a86ca11c
@ -27,7 +27,7 @@ auditTmpdir() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if isScript "$i"; then
|
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
|
if grep -q -F "$TMPDIR" "$i"; then
|
||||||
echo "wrapper script $i contains a forbidden reference to $TMPDIR"
|
echo "wrapper script $i contains a forbidden reference to $TMPDIR"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user