summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-07-17 01:21:38 +0200
committertv <tv@krebsco.de>2016-07-17 01:21:38 +0200
commitf95e0d6aefd869d7c5e15032e72d5365499cd436 (patch)
tree29b532f692034e44853206311862f4d486cb1aa5 /bin
parent375c0f479fa36f9326e6ecbe99e2e98cb2a5e8fc (diff)
add flag to override ssh commandv1.1.1
Diffstat (limited to 'bin')
-rwxr-xr-xbin/populate5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/populate b/bin/populate
index bbe3b7a..fdc4c5d 100755
--- a/bin/populate
+++ b/bin/populate
@@ -10,6 +10,7 @@ debug=false
force=false
origin_host=${HOSTNAME-cat /proc/sys/kernel/hostname}
origin_user=$LOGNAME
+ssh_cmd=ssh
target_spec=
@@ -28,6 +29,9 @@ for arg; do
--force)
force=true
;;
+ --ssh=*)
+ ssh_cmd=${arg#--ssh=}
+ ;;
-*)
error "bad argument: $arg"
;;
@@ -52,6 +56,7 @@ fi
script=$(jq -e -r \
--argjson use_force "$force" \
+ --arg ssh_cmd "$ssh_cmd" \
--arg target_spec "$target_spec" \
--arg origin_host "$origin_host" \
--arg origin_user "$origin_user" \