dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit c260c459ec7f229b1742c828f540cd461f240027
parent 4c8f1faa1ce9c1c8af0874511a45056aaeaef2d2
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 10 Jan 2019 12:43:17 +0100

Set custom port for upload target

Diffstat:
Mlinks/bin/upload | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/links/bin/upload b/links/bin/upload @@ -6,6 +6,7 @@ version=1.0 # Upload target host="adamsgaard.dk" user="ad" +port="12344" remotedir="~/webroot" function show_help { @@ -63,7 +64,7 @@ function upload_file { infile="$1" basename="$2" newbasename="${basename// /_}" - rsync -rvz --progress --chmod=Fu=rw,Fog=r -e "ssh" "$infile" \ + rsync -rvz --progress --chmod=Fu=rw,Fog=r -e "ssh -p $port" "$infile" \ "${user}@${host}:${remotedir}/$newbasename" url="https://$host/files_nonpub/${newbasename}" echo