Fix _create_or_patch_scmbrc to work on OS X (10.7)

On OS X's version of mktemp the -t parameter is manditory -
see http://developer.apple.com/library/mac/#DOCUMENTATION/Darwin/Reference/ManPages/man1/mktemp.1.html
This commit is contained in:
Dave Rigby
2011-10-19 20:30:22 +01:00
parent 046e4eecf7
commit 5b6e349b48

View File

@@ -26,7 +26,7 @@ update_scm_breeze() {
# Create '~/.*.scmbrc' files, or attempt to patch them if passed a previous revision
_create_or_patch_scmbrc() {
patchfile=$(mktemp)
patchfile=$(mktemp -t tmp.XXXXXXXXXX)
for scm in git; do
# Create file from example if it doesn't already exist
if ! [ -e "$HOME/.$scm.scmbrc" ]; then