This commit is contained in:
Thomas Levine 2016-04-07 02:44:22 +00:00
parent b79045c6ee
commit 81c4cdeac0
1 changed files with 4 additions and 5 deletions

9
urchin
View File

@ -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