From 2fee647a569e46c1c5cb8a6fd8c08fff867ef79b Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Thu, 17 Dec 2015 14:04:33 -0500 Subject: [PATCH] fix unzip in unarchive function --- modules/archive/functions/unarchive | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/archive/functions/unarchive b/modules/archive/functions/unarchive index 2009950..762f10c 100644 --- a/modules/archive/functions/unarchive +++ b/modules/archive/functions/unarchive @@ -35,7 +35,7 @@ case "${archive_name}" in (*.xz) unxz "${archive_name}" ;; (*.lzma) unlzma "${archive_name}" ;; (*.Z) uncompress "${archive_name}" ;; - (*.zip) unzip "${archive_name}" -d $extract_dir ;; + (*.zip) unzip "${archive_name}";; (*.rar) unrar &> /dev/null \ && unrar x -ad "${archive_name}" \ || rar x -ad "${archive_name}" ;;