Skip to content

Commit

Permalink
Add debug output for SSH command results
Browse files Browse the repository at this point in the history
  • Loading branch information
vitobotta committed Jan 26, 2025
1 parent 7856d48 commit 4bd8f98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/util/ssh.cr
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ class Util::SSH

File.delete(cmd_file_path)

if ENV.fetch("DEBUG", "false") == "true"
puts "SSH command result: #{result.output.chomp}"
end

result.output.chomp
end

Expand Down

0 comments on commit 4bd8f98

Please sign in to comment.