Skip to content

Commit

Permalink
fix: execute cmd to ensure ssh connectivity
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Riobo Lorenzo <[email protected]>
  • Loading branch information
adrianriobo committed Mar 15, 2024
1 parent f2bd594 commit 1ccfe5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ check_connection() {
repeats=$1
while [[ $repeats -gt 0 ]]
do
ssh_cmd "pwd"
$(ssh_cmd "pwd")
if [[ $? -gt 0 ]]
then
echo "reps remaining: $repeats" >&2
Expand Down

0 comments on commit 1ccfe5c

Please sign in to comment.