From: AJ ONeal Date: Mon, 27 Apr 2020 06:29:29 +0000 (+0000) Subject: bugfixes X-Git-Url: https://git.josue.xyz/?p=webi-installers%2F.git;a=commitdiff_plain;h=1459b4aa657babcecd6bcf6d9414f46f66ece16a bugfixes --- 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