Skip to content

Commit

Permalink
remove make dir
Browse files Browse the repository at this point in the history
  • Loading branch information
xvoland committed May 18, 2013
1 parent 3194a4d commit 2f89a4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ How it use
----------
$ extract archive_name.ext

result:

$ ls archive_name
... extracted files ...

License
-------
Author [Vitalii Tereshchuk](http://dotoca.net). © 2013, MIT license.
4 changes: 2 additions & 2 deletions extract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ function extract {
echo "Usage: extract <path/file_name>.<zip|rar|bz2|gz|tar|tbz2|tgz|Z|7z|xz|ex|tar.bz2|tar.gz|tar.xz>"
else
if [ -f $1 ] ; then
NAME=${1%.*}
mkdir $NAME && cd $NAME
# NAME=${1%.*}
# mkdir $NAME && cd $NAME
case $1 in
*.tar.bz2) tar xvjf ../$1 ;;
*.tar.gz) tar xvzf ../$1 ;;
Expand Down

0 comments on commit 2f89a4a

Please sign in to comment.