1. Luke Plant
  2. virtualenvwrapper

Commits

David Wolever  committed eec22a4

Fixing a bug in the call to mktemp

  • Participants
  • Parent commits c709713
  • Branches default

Comments (0)

Files changed (1)

File virtualenvwrapper.sh

View file
  • Ignore whitespace
 
 # 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