Skip to content

Commit c673ab4

Browse files
committed
Fixing a bug in the call to mktemp
1 parent 4a3624e commit c673ab4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

virtualenvwrapper.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ virtualenvwrapper_verify_workon_home () {
9191

9292
# Expects 1 argument, the suffix for the new file.
9393
virtualenvwrapper_tempfile () {
94-
mktemp "virtualenvwrapper-XXXXXX-$1"
94+
# Note: the 'X's must come last
95+
mktemp "virtualenvwrapper-$1-XXXXXX"
9596
}
9697

9798
# Run the hooks

0 commit comments

Comments
 (0)