summaryrefslogtreecommitdiffstats
path: root/bin/cac-ssh
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-05-21 02:19:23 +0200
committertv <tv@krebsco.de>2015-05-21 02:19:23 +0200
commite6d28660c4f4631b1cfd195d39fc022ed9f60666 (patch)
tree71a81f250424af4ad0a1a4a63b2c35ff4bb4c010 /bin/cac-ssh
parent60e526dc9419d0bff89b05f4a98332aae48a0253 (diff)
cac-ssh: use json-assert-type
Diffstat (limited to 'bin/cac-ssh')
-rwxr-xr-xbin/cac-ssh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cac-ssh b/bin/cac-ssh
index a0ec5dc..e01f76b 100755
--- a/bin/cac-ssh
+++ b/bin/cac-ssh
@@ -1,7 +1,7 @@
#! /bin/sh
set -euf
-server=$1
+server=$(json-assert-type object "$1")
shift
address=$(echo $server | jq -r .ip)