xvoland / Extract

Bash/Zsh function for extract: .zip, .rar, .bz2, .gz, .zlib, .tar, .tbz2, .tgz, .Z, .7z, .xz, .exe, .tar.bz2, .tar.gz, .tar.xz, etc.
MIT License
468 stars 83 forks source link

Invalid path argument given to uncompression programs #2

Closed marcwrobel closed 9 years ago

marcwrobel commented 9 years ago

Since commit 2f89a4ade1443a4f01f96e7628125835cf98bf0e and the "make dir" removal the function gives invalid compressed file path to uncompression programs. ../"$1" should be either transformed to "$1" or turned into a variable (path for instance) :

local path="$1"
# local basename=${1%.*}
# mkdir $basename && cd $basename 
# path="../$1"
xvoland commented 9 years ago

Thanks, will be fixed

xvoland commented 9 years ago

Please, check. Fixed.