Add check for unrar command to avoid error messages.
This commit is contained in:
parent
bc6b9fed8d
commit
f51fc643ce
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ while (( $# > 0 )); do
|
|||
(*.lzma) unlzma "$1" ;;
|
||||
(*.Z) uncompress "$1" ;;
|
||||
(*.zip) unzip "$1" -d $extract_dir ;;
|
||||
(*.rar) unrar e -ad "$1" || rar e -ad "$1" ;;
|
||||
(*.rar) unrar &> /dev/null && unrar e -ad "$1" \
|
||||
|| rar e -ad "$1" ;;
|
||||
(*.7z) 7za x "$1" ;;
|
||||
(*.deb)
|
||||
mkdir -p "$extract_dir/control"
|
||||
|
|
Loading…
Add table
Reference in a new issue