From 1459b4aa657babcecd6bcf6d9414f46f66ece16a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 27 Apr 2020 06:29:29 +0000 Subject: [PATCH] bugfixes --- webi/webi.bash | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/webi/webi.bash b/webi/webi.bash index 665f7c6..bef8480 100644 --- a/webi/webi.bash +++ b/webi/webi.bash @@ -6,14 +6,17 @@ # description: | # for the people like us that are too lazy even to run `curl https://webinstall.dev/PACKAGE_NAME` - just `webi PACKAGE_NAME` instead +cat << EOF > ~/.local/bin/webi set -e set -u -my_package=${1:-} -if [ -z "$my_package" ]; then +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 +curl -fsSL "https://webinstall.dev/\$my_package" | bash +EOF +chmod a+x ~/.local/bin/webi -- 2.25.1