mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Merge b68ee2d2639ff9b80adf998f4f77b57103b7818c into 86f05abcce1fd270032975775adb40040c746cfe
This commit is contained in:
commit
f5303c28d3
@ -58,7 +58,22 @@ cmd extract ${{
|
||||
printf "%s\n\t" "$fx"
|
||||
printf "extract?[y/N]"
|
||||
read ans
|
||||
[ $ans = "y" ] && aunpack $fx
|
||||
[ $ans = "y" ] && {
|
||||
case $fx in
|
||||
*.tar.bz2) tar xjf $fx ;;
|
||||
*.tar.gz) tar xzf $fx ;;
|
||||
*.bz2) bunzip2 $fx ;;
|
||||
*.rar) unrar e $fx ;;
|
||||
*.gz) gunzip $fx ;;
|
||||
*.tar) tar xf $fx ;;
|
||||
*.tbz2) tar xjf $fx ;;
|
||||
*.tgz) tar xzf $fx ;;
|
||||
*.zip) unzip $fx ;;
|
||||
*.Z) uncompress $fx ;;
|
||||
*.7z) 7z x $fx ;;
|
||||
*.tar.xz) tar xf $fx ;;
|
||||
esac
|
||||
}
|
||||
}}
|
||||
|
||||
cmd delete ${{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user