Skip to content

Commit f02df74

Browse files
committed
ignore missing files in trap cleanup (see #38)
1 parent be2aba3 commit f02df74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtualenvwrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ virtualenvwrapper_tempfile () {
100100
echo "ERROR: virtualenvwrapper could not create a temporary file name." 1>&2
101101
return 1
102102
fi
103-
trap "rm '$file' >/dev/null 2>&1" EXIT
103+
trap "rm -f '$file' >/dev/null 2>&1" EXIT
104104
echo $file
105105
return 0
106106
}

0 commit comments

Comments
 (0)