X-Git-Url: https://git.madduck.net/code/vcsh.git/blobdiff_plain/f39e21b79b419bc6831e67eec73afd6c571e7f5a..6facf078b31be6526861303a2d6bc21e636fe139:/vcsh?ds=sidebyside 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"