mirror of
https://github.com/xHyroM/dotfiles.git
synced 2024-12-22 04:11:04 +01:00
somne changes to ex
This commit is contained in:
parent
4eb397e210
commit
cb07ff2ae3
1 changed files with 27 additions and 2 deletions
|
@ -44,7 +44,32 @@ case $1 in
|
|||
*.tar.xz)
|
||||
tar -xf $1 -C $extraction_folder;;
|
||||
*.tar.zst)
|
||||
unzstd $1 -o $extraction_folder;;
|
||||
unzstd $1;;
|
||||
*.tar.lz)
|
||||
tar --lzip -xf $1 -C $extraction_folder;;
|
||||
*.tar.lzop)
|
||||
lzop -d $1 -o $extraction_folder/$(basename $1 .lzop);;
|
||||
*.bz3)
|
||||
bunzip3 $1 -c > $extraction_folder/$(basename $1 .bz3);;
|
||||
*.a)
|
||||
ar -x $1;;
|
||||
*.lz)
|
||||
lzip -d $1 -o $extraction_folder/$(basename $1 .lz);;
|
||||
*.lzo)
|
||||
lzop -d $1 -o $extraction_folder/$(basename $1 .lzo);;
|
||||
*.lz4)
|
||||
lz4 -d $1;;
|
||||
*.lrz)
|
||||
lrz -d $1 -o $extraction_folder/$(basename $1 .lrz);;
|
||||
*.shar)
|
||||
unshar $1;;
|
||||
*.xz)
|
||||
xz -d $1;;
|
||||
*.zst)
|
||||
zstd -d $1 -o $extraction_folder/$(basename $1 .zst);;
|
||||
*.cpio)
|
||||
cpio -idmv < $1;;
|
||||
*)
|
||||
echo "'$1' cannot be extracted via ex()";;
|
||||
echo "'$1' cannot be extracted via ex()"
|
||||
exit 1;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue