Permalink
Browse files

reversal

  • Loading branch information...
1 parent 32c3bd5 commit 420fa6f48204eec4a9e13ddb8cf953f98c6e27e5 @andrewxhill andrewxhill committed Apr 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/importer/lib/cartodb-importer/decompressors/tar.rb
@@ -16,7 +16,7 @@ def process!
Dir.mkdir(tmp_dir)
if @ext == '.tar'
tarcmd = "tar -C #{tmp_dir} -xvf #{@path}"
- elsif @ext == '.gz' and @path.include? '.tar'
+ elsif @ext == '.gz' && ! @path.include? '.tar'
tarcmd = "gzip -d #{@path}"
else
tarcmd = "tar -C #{tmp_dir} -zxvf #{@path}"

0 comments on commit 420fa6f

Please sign in to comment.