mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
cli for webinstall.dev
This commit is contained in:
19
webi/webi.bash
Normal file
19
webi/webi.bash
Normal 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
|
||||
Reference in New Issue
Block a user