cli for webinstall.dev

This commit is contained in:
AJ ONeal
2020-04-27 06:24:30 +00:00
parent 70691b7ab4
commit ac762b60f9

19
webi/webi.bash Normal file
View File

@@ -0,0 +1,19 @@
#!/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
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