From ac762b60f99364184ea1ecea14a0111af9520ffa Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 27 Apr 2020 06:24:30 +0000 Subject: [PATCH] cli for webinstall.dev --- webi/webi.bash | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 webi/webi.bash 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 -- 2.25.1