Skip to content

Commit

Permalink
Merge pull request #282 from colby-swandale/colby/fix-rubocop
Browse files Browse the repository at this point in the history
fix errors in rubocop
  • Loading branch information
hsbt committed Nov 2, 2018
2 parents 3988bc5 + ab22780 commit 70b6512
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/rake/packagetask.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ def define
task package: ["#{package_dir}/#{file}"]
file "#{package_dir}/#{file}" =>
[package_dir_path] + package_files do
chdir(package_dir) do
sh @tar_command, "#{flag}cvf", file, package_name
end
chdir(package_dir) { sh @tar_command, "#{flag}cvf", file, package_name }
end
end
end
Expand All @@ -143,9 +141,7 @@ def define
task package: ["#{package_dir}/#{zip_file}"]
file "#{package_dir}/#{zip_file}" =>
[package_dir_path] + package_files do
chdir(package_dir) do
sh @zip_command, "-r", zip_file, package_name
end
chdir(package_dir) { sh @zip_command, "-r", zip_file, package_name }
end
end

Expand Down

0 comments on commit 70b6512

Please sign in to comment.