aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscp.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scp.sh b/scp.sh
index 27b23fd..368b6bf 100755
--- a/scp.sh
+++ b/scp.sh
@@ -11,4 +11,4 @@ hostpass="$(echo "$host" | cut -d'#' -f4)"
targetPath="$(echo "$host" | cut -d'#' -f5)"
echo "Sending to $hostname"
[ "$hostpass" ] && pass -c "$hostpass"
-[ "$hostport" ] && scp -P $hostport "$@" $hostaddress:$targetPath || scp "$@" $hostaddress:$targetPath # No quotes here!
+[ "$hostport" ] && scp -r -P $hostport "$@" $hostaddress:$targetPath || scp -r "$@" $hostaddress:$targetPath # No quotes here!