mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-03 18:00:18 +00:00
25 lines
542 B
Bash
25 lines
542 B
Bash
#!/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` - just `webi PACKAGE_NAME` instead
|
|
|
|
# TODO webi package@semver#channel
|
|
|
|
cat << EOF > ~/.local/bin/webi
|
|
set -e
|
|
set -u
|
|
|
|
my_package=\${1:-}
|
|
if [ -z "\$my_package" ]; then
|
|
echo "Usage: webi <package>"
|
|
echo "Example: webi node"
|
|
exit 1
|
|
fi
|
|
|
|
curl -fsSL "https://webinstall.dev/\$my_package" | bash
|
|
EOF
|
|
chmod a+x ~/.local/bin/webi
|