Updated extract script
This commit is contained in:
@@ -39,7 +39,11 @@ extract(){
|
||||
*.tar) tar xf $1 ;;
|
||||
*.tbz2) tar xjf $1 ;;
|
||||
*.tgz) tar xzf $1 ;;
|
||||
*.zip) unzip $1 ;;
|
||||
*.zip) if [ -n $2 ] ; then
|
||||
unzip $1 -d $2
|
||||
else
|
||||
unzip $1
|
||||
fi ;;
|
||||
*.Z) uncompress $1 ;;
|
||||
*.7z) 7z x $1 ;;
|
||||
*) echo "'$1' cannot be extracted via extract()" ;;
|
||||
|
Reference in New Issue
Block a user