From 81c4cdeac0633afd2ad0abc0fab059351a9d2df4 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Thu, 7 Apr 2016 02:44:22 +0000 Subject: [PATCH] oops --- urchin | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/urchin b/urchin index 601e4d4..43765c9 100755 --- a/urchin +++ b/urchin @@ -71,7 +71,6 @@ fi epoch_date() { date +%s } - epoch_pax() { # Based on http://stackoverflow.com/a/7262588/407226 tmp="$(mktemp_file)" @@ -82,12 +81,12 @@ epoch_pax() { mktemp_dir() { # Support HP-UX mktemp that has wrong exit codes and # can't make directories. - if test -f "${urchin_tmp}"; then - rm "${urchin_tmp}" + tmp=$(mktemp) + if test -f "${tmp}"; then + rm "${tmp}" fi - mkdir "${urchin_tmp}" + mkdir "${tmp}" } - mktemp_file() { tmp=$(mktemp) if ! test -f "${tmp}"; then