From 6facf078b31be6526861303a2d6bc21e636fe139 Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Thu, 23 Oct 2014 00:26:30 +0200 Subject: [PATCH] vcsh: Use BSD/OS X compatible `mktemp` --- vcsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcsh b/vcsh index e4143de..965f83d 100755 --- a/vcsh +++ b/vcsh @@ -293,9 +293,9 @@ command_exists() { list_untracked() { command_exists comm - temp_file_others=$(mktemp) || fatal 'Could not create temp file' - temp_file_untracked=$(mktemp) || fatal 'Could not create temp file' - temp_file_untracked_copy=$(mktemp) || fatal 'Could not create temp file' + temp_file_others=$(mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX") || fatal 'Could not create temp file' + temp_file_untracked=$(mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX") || fatal 'Could not create temp file' + temp_file_untracked_copy=$(mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX") || fatal 'Could not create temp file' [ -z "$VCSH_OPTION_RECURSIVE" ] && directory_opt="--directory" -- 2.39.2