From b6c79e4fb20ce878a8b6a6250246b10f2ef2d761 Mon Sep 17 00:00:00 2001 From: Toby Fleming Date: Sat, 2 Jan 2016 22:47:19 +0000 Subject: [PATCH] Fix mktemp on Mac OS X --- functions/fisher_uninstall.fish | 2 +- functions/wait.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/fisher_uninstall.fish b/functions/fisher_uninstall.fish index 7acc52d..a449289 100644 --- a/functions/fisher_uninstall.fish +++ b/functions/fisher_uninstall.fish @@ -111,7 +111,7 @@ function fisher_uninstall -d "Disable / Uninstall Plugins" continue end - set -l tmp (mktemp) + set -l tmp (mktemp -t fisher.XXXXXXXX) if not sed -E '/^ *'(printf "%s|%s" $name $url | sed 's|/|\\\/|g' )'([ #].*)*$/d' < $file > $tmp diff --git a/functions/wait.fish b/functions/wait.fish index b8b5099..e2f8d4f 100644 --- a/functions/wait.fish +++ b/functions/wait.fish @@ -90,7 +90,7 @@ function wait -d "Run commands and wait with a spin" end end - set -l tmp (mktemp) + set -l tmp (mktemp -t fisher.XXXXXXXX) fish -c "$commands" ^ $tmp &