mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
experimental new way of doing extract, depends on very basic tar support
This commit is contained in:
parent
84e0953d1b
commit
80297aed6f
1 changed files with 6 additions and 3 deletions
|
@ -31,11 +31,14 @@ extract ()
|
|||
*.tar)
|
||||
tar xf "${1}"
|
||||
;;
|
||||
*.tar.gz|*.tgz|*.tar.z)
|
||||
tar zxf "${1}"
|
||||
*.tar.gz|*.tgz)
|
||||
gunzip -c "${1}" | tar xf -
|
||||
;;
|
||||
*.tar.z)
|
||||
uncompress -c "${1}" | tar xf -
|
||||
;;
|
||||
*.tar.bz2|*.tbz2)
|
||||
tar jxf "${1}"
|
||||
bzcat "${1}" | tar xf -
|
||||
;;
|
||||
*.zip|*.jar)
|
||||
unzip -qo "${1}"
|
||||
|
|
Loading…
Add table
Reference in a new issue