1
0
Fork 0

Add `rar` command to `extract` function.

This addition tries to use the `rar` command, if `unrar` isn't found.
pull/432/head
nasenatmer 12 years ago
parent 7e33c7189e
commit bc6b9fed8d

@ -53,7 +53,7 @@ while (( $# > 0 )); do
(*.lzma) unlzma "$1" ;; (*.lzma) unlzma "$1" ;;
(*.Z) uncompress "$1" ;; (*.Z) uncompress "$1" ;;
(*.zip) unzip "$1" -d $extract_dir ;; (*.zip) unzip "$1" -d $extract_dir ;;
(*.rar) unrar e -ad "$1" ;; (*.rar) unrar e -ad "$1" || rar e -ad "$1" ;;
(*.7z) 7za x "$1" ;; (*.7z) 7za x "$1" ;;
(*.deb) (*.deb)
mkdir -p "$extract_dir/control" mkdir -p "$extract_dir/control"

Loading…
Cancel
Save