Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix RuboCop violations in bash.rake

  • Loading branch information...
commit 8b65874ded3c999caab39f8c39f4491aa77d04f3 1 parent fec41d2
@sferik authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 tasks/bash.rake
View
8 tasks/bash.rake
@@ -10,10 +10,10 @@ namespace :completion do
File.open(file_path, 'w') { |f| f.write BashCompletion.generate }
git_status = %x[git status -s]
- if !!git_status[%r{M #{output_path}}]
- cmd = "git add #{output_path} && git commit -m 'Updating Bash completion'"
- result = system cmd
- fail("Could not commit changes") unless result
+ if git_status[/M #{output_path}/]
+ cmd = "git add #{output_path} && git commit -m 'Updating Bash completion'"
+ result = system cmd
+ fail('Could not commit changes') unless result
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.