Skip to content

Commit

Permalink
fix: linting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkProminic committed Jan 9, 2024
1 parent b74c980 commit 5efd5ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/vagrant-zones/action/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def call(env)
end
CODE
File.write("#{Dir.pwd}/_tmp_package/Vagrantfile", vagrantfile_content)

files[env['package.vagrantfile']] = '_Vagrantfile' if env['package.vagrantfile']

info_content_hash = {
Expand All @@ -96,7 +95,6 @@ def call(env)
'format' => 'zss',
'url' => "https://app.vagrantup.com/#{mpc.vagrant_cloud_creator}/boxes/#{mpc.boxshortname}"
}

metadata_content_hash['kernel'] = mpc.kernel if !mpc.kernel.nil? && mpc.kernel != false
File.write("#{Dir.pwd}/_tmp_package/metadata.json", metadata_content_hash.to_json)

Expand Down Expand Up @@ -129,7 +127,7 @@ def assemble_box(boxname, tmp_dir)
is_linux = `bash -c '[[ "$(uname -a)" =~ "Linux" ]]'`
Dir.chdir(tmp_dir) do
files = Dir.glob(File.join('.', '*'))
tar_command = is_linux ? "tar -cvzf" : "tar -cvzEf"
tar_command = is_linux ? 'tar -cvzf' : 'tar -cvzEf'
`#{tar_command} ../#{boxname} #{files.join(' ')}`
end
end
Expand Down

0 comments on commit 5efd5ae

Please sign in to comment.