Extract .tar.xz properly on Linux
This commit is contained in:
parent
85b531e773
commit
b89428cd32
@ -4,6 +4,7 @@
|
|||||||
- zsh
|
- zsh
|
||||||
- zsh-doc
|
- zsh-doc
|
||||||
- pinentry-curses
|
- pinentry-curses
|
||||||
|
- xz-utils
|
||||||
- brew:
|
- brew:
|
||||||
- zsh
|
- zsh
|
||||||
- pacman:
|
- pacman:
|
||||||
@ -11,6 +12,7 @@
|
|||||||
- dnf:
|
- dnf:
|
||||||
- util-linux-user
|
- util-linux-user
|
||||||
- zsh
|
- zsh
|
||||||
|
- xz
|
||||||
- command:
|
- command:
|
||||||
- install: sudo chsh -s `which zsh` $USER
|
- install: sudo chsh -s `which zsh` $USER
|
||||||
remove: sudo chsh -s `which bash` $USER
|
remove: sudo chsh -s `which bash` $USER
|
||||||
|
@ -44,7 +44,7 @@ extract() {
|
|||||||
case $1 in
|
case $1 in
|
||||||
*.tar.bz2) tar xvjf $1 ;;
|
*.tar.bz2) tar xvjf $1 ;;
|
||||||
*.tar.gz) tar xvzf $1 ;;
|
*.tar.gz) tar xvzf $1 ;;
|
||||||
*.tar.xz) [ `"uname"` = "Darwin" ] && tar xvJf $1 || gunzip $1 ;;
|
*.tar.xz) [ `"uname"` = "Darwin" ] && tar xvJf $1 || tar xf $1 ;;
|
||||||
*.bz2) bunzip2 $1 ;;
|
*.bz2) bunzip2 $1 ;;
|
||||||
*.rar) unrar x $1 ;;
|
*.rar) unrar x $1 ;;
|
||||||
*.gz) gunzip $1 ;;
|
*.gz) gunzip $1 ;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user