summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-28 14:25:02 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-28 14:25:02 (EDT)
commitb53001535e6947d85f83638eaa17bcc73e0f6497 (patch)
treea03a14fddc31b1a82166a7f113dff46a3c7b0e54 /src
parent18c8a7b8baa6141b1b5e0a78ac4d48f6cddf8e0e (diff)
downloadfirman.sh-b53001535e6947d85f83638eaa17bcc73e0f6497.zip
firman.sh-b53001535e6947d85f83638eaa17bcc73e0f6497.tar.gz
firman.sh-b53001535e6947d85f83638eaa17bcc73e0f6497.tar.bz2
get_temp_dir(): New function (again)
Diffstat (limited to 'src')
-rw-r--r--src/download.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/download.sh b/src/download.sh
index 7565bf6..ba2a609 100644
--- a/src/download.sh
+++ b/src/download.sh
@@ -47,6 +47,12 @@ fini_temp_dir()
return 0
}
+get_temp_dir()
+{
+ printf '%s' "${temp_dir}"
+ return 0
+}
+
dl()
{
local url="${1}"
@@ -71,6 +77,7 @@ dl_temp()
return 1
fi
+ printf '%s/%s' "${temp_dir}" "${file}"
return 0
}