From b53001535e6947d85f83638eaa17bcc73e0f6497 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 28 Oct 2015 14:25:02 -0400 Subject: get_temp_dir(): New function (again) --- (limited to 'src') 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 } -- cgit v0.9.1