Skip to content

Commit

Permalink
Use sh instead of system cmd, exception: true in *.rake
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Jun 15, 2024
1 parent 404ca8b commit 142d49f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/changelog.rake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace :changelog do
ref_type = :pull if args[:id]
path = Changelog::Entry.new(type: type, ref_id: args[:id], ref_type: ref_type).write
cmd = "git add #{path}"
system cmd, exception: true
sh cmd
puts "Entry '#{path}' created and added to git index"
end
end
Expand All @@ -21,7 +21,7 @@ namespace :changelog do
Changelog.new.merge!.and_delete!
cmd = "git commit -a -m 'Update Changelog'"
puts cmd
system cmd, exception: true
sh cmd
end

task :check_clean do
Expand Down

0 comments on commit 142d49f

Please sign in to comment.