Rename extract() -> unpack()
This commit is contained in:
parent
b1ec241cac
commit
95c1527968
|
@ -5,8 +5,8 @@ function quick-look {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Extract a compressed file with the appropriate command
|
# Extract a compressed file with the appropriate command
|
||||||
function extract {
|
function unpack {
|
||||||
if [ -f $1 ] ; then
|
if [ -f "$1" ]; then
|
||||||
case $1 in
|
case $1 in
|
||||||
*.tar.bz2) tar xjf $1 ;;
|
*.tar.bz2) tar xjf $1 ;;
|
||||||
*.tar.gz) tar xzf $1 ;;
|
*.tar.gz) tar xzf $1 ;;
|
||||||
|
|
Loading…
Reference in a new issue