From: AJ ONeal Date: Mon, 27 Apr 2020 06:24:30 +0000 (+0000) Subject: cli for webinstall.dev X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=ac762b60f99364184ea1ecea14a0111af9520ffa;p=webi-installers%2F.git cli for webinstall.dev --- diff --git a/webi/webi.bash b/webi/webi.bash new file mode 100644 index 0000000..665f7c6 --- /dev/null +++ b/webi/webi.bash @@ -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 " + echo "Example: webi node" + exit 1 +fi + +curl -fsSL "https://webinstall.dev/$my_package" | bash