diff --git a/lib/fpm/cookery/source_handler/curl.rb b/lib/fpm/cookery/source_handler/curl.rb index a8fca01f..5196cb5f 100644 --- a/lib/fpm/cookery/source_handler/curl.rb +++ b/lib/fpm/cookery/source_handler/curl.rb @@ -29,7 +29,7 @@ def extract(config = {}) File.chmod(0755, local_path) safesystem(local_path) when '.zip' - safesystem('unzip', '-d', local_path.basename('.zip'), local_path) + safesystem('unzip', local_path) else if !local_path.directory? && !local_path.basename.exist? Dir.mkdir(local_path.basename)