Skip to content

Commit

Permalink
Add missing port in nc-rsync-auto.sh (#983)
Browse files Browse the repository at this point in the history
Co-Authored-By: nachoparker <nacho@ownyourbits.com>
  • Loading branch information
bhopmann and nachoparker committed Sep 5, 2019
1 parent 1a367a6 commit fd2b74b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ncp/BACKUPS/nc-rsync-auto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ configure()

[[ "$DESTINATION" =~ : ]] && {
local NET="$( sed 's|:.*||' <<<"$DESTINATION" )"
local SSH=( ssh -o "BatchMode=yes" "$NET" )
local SSH=( ssh -o "BatchMode=yes" -p "$PORTNUMBER" "$NET" )
${SSH[@]} : || { echo "SSH non-interactive not properly configured"; return 1; }
}

Expand Down

0 comments on commit fd2b74b

Please sign in to comment.