refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / webi / install.sh
1 #!/bin/bash
2
3 # Note: 'webi' is a special case. It's actually just a helper utility that comes with every installer.
4 #       See https://github.com/webinstall/packages/blob/master/_webi/bootstrap.sh for the source.
5
6 function __faux_webi() {
7
8     if [ -f "$HOME/.local/bin/webi" ]; then
9         set +e
10         cur_webi="$(command -v webi)"
11         set -e
12         if [ -z "$cur_webi" ]; then
13             webi_path_add "$HOME/.local/bin"
14         fi
15     else
16         # for when this file is run on its own, not from webinstall.dev
17         echo "Install any other package via https://webinstall.dev and webi will be installed as part of the bootstrap process"
18     fi
19
20     echo ""
21     echo "'webi' installed to ~/.local/bin/webi"
22     echo ""
23     echo "Usage:"
24     echo "    webi <package-name>[@version] ..."
25     echo ""
26     echo "Example:"
27     echo "    webi node@lts prettier vim-essentials"
28     echo ""
29 }
30
31 __faux_webi