commit 00daf327ae89cd13ca268c10eb827376e72c13c9
parent a2645000d32e5edb955126fcd83973482f5fd9f2
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 10 Jan 2019 15:29:03 +0100
Fix port command option for scp calls
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/links/bin/bookmark b/links/bin/bookmark
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
+set -e
+set -v
localfile="$HOME/doc/bookmark.txt"
remoteuser=andersdc
@@ -19,14 +21,14 @@ function init {
function upload {
scp -q \
- -p "$port" \
+ -P "$port" \
"$localfile" \
"$remoteuser@$hostname:$remotefile"
}
function download {
scp -q \
- -p "$port" \
+ -P "$port" \
"$remoteuser@$hostname:$remotefile" \
"$localfile"
}