Skip to content

Commit

Permalink
BSD/OSX version of mktemp requires template, should fix #11
Browse files Browse the repository at this point in the history
  • Loading branch information
dlenski committed Jun 19, 2016
1 parent b2b01f9 commit 8bd8728
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*~
*.py[co]
2 changes: 1 addition & 1 deletion pre-commit.careful
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

wtf_options='-q'
tmp=$(mktemp)
tmp=$(mktemp /tmp/wtf.XXXX) # BSD/OSX version of mktemp requires template

# Run Whitespace Total Fixer on index contents WITHOUT modifying working directory
git diff-index --cached HEAD --diff-filter=ACMRTU |
Expand Down

0 comments on commit 8bd8728

Please sign in to comment.