Commits

David Wolever  committed eec22a4

Fixing a bug in the call to mktemp

  • Participants
  • Parent commits c709713

Comments (0)

Files changed (1)

File virtualenvwrapper.sh

 
 # Expects 1 argument, the suffix for the new file.
 virtualenvwrapper_tempfile () {
-    mktemp "virtualenvwrapper-XXXXXX-$1"
+    # Note: the 'X's must come last
+    mktemp "virtualenvwrapper-$1-XXXXXX"
 }
 
 # Run the hooks