add myip
[webi-installers/.git] / myip / install.sh
diff --git a/myip/install.sh b/myip/install.sh
new file mode 100644 (file)
index 0000000..2965145
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+{
+    set -e
+    set -u
+
+    rm -f "$HOME/.local/bin/myip"
+    webi_download  "$WEBI_HOST/packages/myip/myip.sh" "$HOME/.local/bin/myip"
+    chmod a+x "$HOME/.local/bin/myip"
+
+    "$HOME/.local/bin/myip"
+}