install ssh-pubkey BEFORE running it
[webi-installers/.git] / ssh-pubkey / install.sh
diff --git a/ssh-pubkey/install.sh b/ssh-pubkey/install.sh
new file mode 100644 (file)
index 0000000..805f789
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+{
+    set -e
+    set -u
+
+    MY_CMD="ssh-pubkey"
+
+    rm -f "$HOME/.local/bin/$MY_CMD"
+    webi_download  "$WEBI_HOST/packages/$MY_CMD/$MY_CMD.sh" "$HOME/.local/bin/$MY_CMD"
+    chmod a+x "$HOME/.local/bin/$MY_CMD"
+
+    # run the command
+    "$HOME/.local/bin/$MY_CMD"
+}