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 0964eea54ea442c1cf92a30364c7fe3f9ea69641
parent f9f37c41eb62b5454973447588c863eb336e6cff
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 16 Sep 2019 11:08:23 +0200

Don't specify ssh port

Diffstat:
M.local/bin/upload | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.local/bin/upload b/.local/bin/upload @@ -79,7 +79,7 @@ upload_file() { infile="$1" basename="$2" newbasename="$(echo "$basename" | sed 's/ /_/g')" - rsync -rvz --progress --chmod=Fu=rw,Fog=r -e "ssh -p $port" "$infile" \ + rsync -rvz --progress --chmod=Fu=rw,Fog=r -e "ssh" "$infile" \ "${user}@${host}:${remotedir}/$newbasename" url="https://$host/files_nonpub/${newbasename}" echo @@ -99,7 +99,7 @@ download_file() { } delete_file() { - ssh -p "$port" "$user"@"$host" "rm /var/www/html/files_nonpub/$1" + ssh -p "$user"@"$host" "rm /var/www/html/files_nonpub/$1" } die() {