tailscale: add version tests
authorMichal Vasilek <michal.vasilek@nic.cz>
Wed, 12 Oct 2022 17:30:37 +0000 (19:30 +0200)
committerMichal Vasilek <michal.vasilek@nic.cz>
Thu, 13 Oct 2022 09:31:38 +0000 (11:31 +0200)
Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
net/tailscale/test.sh [new file with mode: 0644]

diff --git a/net/tailscale/test.sh b/net/tailscale/test.sh
new file mode 100644 (file)
index 0000000..f50de6f
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+if command -v tailscale; then
+    tailscale version | grep "$2" || exit 1
+fi
+
+if command -v tailscaled; then
+    tailscaled -version | grep "$2"
+fi