From 82c81822d3699e346ceb240fa4e458df7858dd9f Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Thu, 7 Apr 2016 03:51:01 +0000 Subject: [PATCH] mktemp templates --- urchin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urchin b/urchin index eb114b8..4100ddf 100755 --- a/urchin +++ b/urchin @@ -81,7 +81,7 @@ epoch_pax() { mktemp_dir() { # Support HP-UX mktemp that has wrong exit codes and # can't make directories. - tmp=$(mktemp) + tmp=$(mktemp /tmp/urchin.XXXXXXXX) if test -f "${tmp}"; then rm "${tmp}" fi @@ -89,7 +89,7 @@ mktemp_dir() { echo "${tmp}" } mktemp_file() { - tmp=$(mktemp) + tmp=$(mktemp /tmp/urchin.XXXXXXXX) if ! test -f "${tmp}"; then > "${tmp}" fi