Commit 380e2e42 authored by Vitaly Lipatov's avatar Vitaly Lipatov

erc: extract_archive(): add tgz unpacking

parent fb9141a1
......@@ -89,10 +89,10 @@ extract_archive()
local TSUBDIR="$(basename "$arc" .$type)"
case "$type" in
tar.*)
tar.*|tgz)
# TODO: check if there is only one file?
# use subdir if there is no subdir in archive
TSUBDIR="$(basename "$arc" $(echo $type | sed -e 's|^tar||') )"
TSUBDIR="$(basename "$arc" .$(echo $type | sed -e 's|^tar\.||') )"
docmd $HAVE_7Z x -so $arc | docmd $HAVE_7Z x -si -ttar
;;
*)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment