Skip to content

Commit

Permalink
Fix wrong regexp to get ride of \r
Browse files Browse the repository at this point in the history
  • Loading branch information
robertcheramy committed Mar 18, 2024
1 parent 50bae60 commit 273b755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oxidized/input/ssh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def cmd(cmd, expect = node.prompt)
cmd_output = if @exec
@ssh.exec! cmd
else
cmd_shell(cmd, expect).gsub("/\r\n/", "\n")
cmd_shell(cmd, expect).gsub("\r\n", "\n")
end
# Make sure we return a String
cmd_output.to_s
Expand Down

0 comments on commit 273b755

Please sign in to comment.