mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
bugfix: generate archive in current folder
instead of e.g. the rubygems location somewhere on the system
This commit is contained in:
parent
1e1e473cb0
commit
07ae2afd3b
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ module Inspec
|
|||
archive = Pathname.new(opts[:archive])
|
||||
else
|
||||
slug = profile_name.downcase.strip.tr(' ', '-').gsub(/[^\w-]/, '_')
|
||||
archive = Pathname.new(File.dirname(__FILE__)).join('../..', "#{slug}.#{ext}")
|
||||
archive = Pathname.new(Dir.pwd).join("#{slug}.#{ext}")
|
||||
end
|
||||
|
||||
# check if file exists otherwise overwrite the archive
|
||||
|
|
Loading…
Add table
Reference in a new issue