chore(ssh-pubkey): style update
[webi-installers/.git] / ssh-pubkey / install.sh
deleted file mode 120000 (symlink)
index c96a4a16dc2003207bbea25f4a8b6cdaa6c6320f..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../ssh-utils/ssh-pubkey.sh
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..dc71cba32c0d6524255af5fd1013dde9c10c945b
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -e
+set -u
+
+function __install_ssh_pubkey() {
+    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"
+}
+
+__install_ssh_pubkey