Skip to content

Commit

Permalink
Fix - Make sure we have an $output variable, before testing it.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Nov 6, 2024
1 parent 655de38 commit efb2354
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Helpers/ssh_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ function ssh_command($parameters)
$ssh->setTimeout($timeout);
// Not using sudo, so no password prompt
$result = $ssh->exec($command);
$output = $result;
$result = explode("\n", $result);
// remove the last line as it's always blank
unset($result[count($result) - 1]);
Expand Down

0 comments on commit efb2354

Please sign in to comment.