Skip to content

Commit

Permalink
fix: Replace system_command! by system_command
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalvaro committed Feb 1, 2024
1 parent 88d1d46 commit 6773403
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Casks/salt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
random_str = (0...8).map { rand(65..90).chr }.join
%w[api master minion syndic].each do |daemon|
plist_file = "/Library/LaunchDaemons/com.saltstack.salt.#{daemon}.plist"
xml, = system_command! "plutil",
xml, = system_command "plutil",
args: ["-convert", "xml1", "-o", "-", "--", plist_file],

Check failure on line 27 in Casks/salt.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.
sudo: true
xml = Plist.parse_xml(xml)
Expand All @@ -38,13 +38,13 @@

new_plist_file = "/tmp/#{random_str}.#{File.basename(plist_file)}"
File.write(new_plist_file, xml.to_plist)
system_command! "plutil",
system_command "plutil",
args: ["-lint", new_plist_file]

Check failure on line 42 in Casks/salt.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.

system_command! "mv",
system_command "mv",
args: [new_plist_file, plist_file],

Check failure on line 45 in Casks/salt.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.
sudo: true
system_command! "chown",
system_command "chown",
args: ["root:wheel", plist_file],

Check failure on line 48 in Casks/salt.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/ArgumentAlignment: Align the arguments of a method call if they span more than one line.
sudo: true
end
Expand Down

0 comments on commit 6773403

Please sign in to comment.