Skip to content

Commit

Permalink
Merge pull request #2359 from mhashizume/maint/main/rubocop-regex
Browse files Browse the repository at this point in the history
(maint) Fix RedundantRegexpAgrument cop
  • Loading branch information
joshcooper committed Jun 29, 2023
2 parents 7372213 + 40bd57a commit dbb207f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configs/components/puppet-runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
# so cmd.exe was not working as expected.
install_command = [
"gunzip -c #{tarball_name} | tar -k -C /cygdrive/c/ -xf -",
"chmod 755 #{settings[:bindir].sub(/C:/, '/cygdrive/c')}/*"
"chmod 755 #{settings[:bindir].sub('C:', '/cygdrive/c')}/*"
]
elsif platform.is_macos?
# We can't untar into '/' because of SIP on macOS; Just copy the contents
Expand Down
2 changes: 1 addition & 1 deletion configs/components/pxp-agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# so cmd.exe was not working as expected.
install_command = [
"gunzip -c #{tarball_name} | tar --skip-old-files -C /cygdrive/c/ -xf -",
"chmod 755 #{settings[:bindir].sub(/C:/, '/cygdrive/c')}/*"
"chmod 755 #{settings[:bindir].sub('C:', '/cygdrive/c')}/*"
]
elsif platform.is_macos?
# We can't untar into '/' because of SIP on macOS; Just copy the contents
Expand Down

0 comments on commit dbb207f

Please sign in to comment.