X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=webi%2Finstall.sh;h=0c26ab455d14dd16e89715e9e0b735f6e0060f48;hb=aa61db993471a5ec35fadbc050126735b9fc200a;hp=c5730b2a6a18bf422c65f820b8745b406db1db98;hpb=5e0debf4c54c1e55476c1bc533c26db2b54d2f77;p=webi-installers%2F.git
diff --git a/webi/install.sh b/webi/install.sh
index c5730b2..0c26ab4 100644
--- a/webi/install.sh
+++ b/webi/install.sh
@@ -1,38 +1,21 @@
#!/bin/bash
-# title: Webi
-# homepage: https://webinstall.dev
-# tagline: webinstall.dev for the CLI
-# description: |
-# for the people like us that are too lazy even to run curl https://webinstall.dev/PACKAGE_NAME | bash
-# examples: |
-# ```bash
-# webi node@latest
-# ```
-#
-#
-# ```bash
-# webi golang@v1.14
-# ```
-#
-#
-# ```bash
-# webi rustlang
-# ```
+# Note: 'webi' is a special case. It's actually just a helper utility that comes with every installer.
+# See https://github.com/webinstall/packages/blob/master/_webi/bootstrap.sh for the source.
{
-if [ -f "$HOME/.local/bin/webi" ]; then
- set +e
- cur_webi="$(command -v webi)"
- set -e
- if [ -z "$cur_webi" ]; then
- webi_path_add "$HOME/.local/bin"
- fi
- echo "Installed 'webi'"
-else
- # for when this file is run on its own, not from webinstall.dev
- echo "Install any other package via https://webinstall.dev and webi will be installed as part of the bootstrap process"
-fi
+ if [ -f "$HOME/.local/bin/webi" ]; then
+ set +e
+ cur_webi="$(command -v webi)"
+ set -e
+ if [ -z "$cur_webi" ]; then
+ webi_path_add "$HOME/.local/bin"
+ fi
+ echo "Installed 'webi'"
+ else
+ # for when this file is run on its own, not from webinstall.dev
+ echo "Install any other package via https://webinstall.dev and webi will be installed as part of the bootstrap process"
+ fi
}