From bc6b9fed8dc78fb1be5a726cbf6e4d1a406c3d74 Mon Sep 17 00:00:00 2001 From: nasenatmer Date: Tue, 14 May 2013 22:06:24 +0100 Subject: [PATCH] Add `rar` command to `extract` function. This addition tries to use the `rar` command, if `unrar` isn't found. --- modules/archive/functions/extract | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/archive/functions/extract b/modules/archive/functions/extract index af7ed25a..5f69516f 100644 --- a/modules/archive/functions/extract +++ b/modules/archive/functions/extract @@ -53,7 +53,7 @@ while (( $# > 0 )); do (*.lzma) unlzma "$1" ;; (*.Z) uncompress "$1" ;; (*.zip) unzip "$1" -d $extract_dir ;; - (*.rar) unrar e -ad "$1" ;; + (*.rar) unrar e -ad "$1" || rar e -ad "$1" ;; (*.7z) 7za x "$1" ;; (*.deb) mkdir -p "$extract_dir/control"