Commits

Doug Hellmann committed 88120db

ignore missing files in trap cleanup (see #38)

  • Participants
  • Parent commits e090ca4

Comments (0)

Files changed (1)

File virtualenvwrapper.sh

         echo "ERROR: virtualenvwrapper could not create a temporary file name." 1>&2
         return 1
     fi
-    trap "rm '$file' >/dev/null 2>&1" EXIT
+    trap "rm -f '$file' >/dev/null 2>&1" EXIT
     echo $file
     return 0
 }