X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=_webi%2Fbootstrap.sh;h=877ad818443500feccc80ab79a49eeebac4cfba7;hb=912c9c8f06590f06a2a9df1c03d8ead43e96ec70;hp=7bf24e76bf90ac43a548b438f38628aad28f3fe6;hpb=e6a2e1cadc9c3ad7befd86144d11c15eb40a7b4f;p=webi-installers%2F.git diff --git a/_webi/bootstrap.sh b/_webi/bootstrap.sh index 7bf24e7..877ad81 100644 --- a/_webi/bootstrap.sh +++ b/_webi/bootstrap.sh @@ -52,9 +52,9 @@ if [ -n "\$(command -v unxz)" ]; then fi if [ -n "\$(command -v unzip)" ]; then my_ext="zip,\$my_ext" -else - echo "WARN: 'unzip' not found" fi +# for mac/linux 'exe' refers to the uncompressed binary without extension +my_ext="exe,\$my_ext" if [ -n "\$(command -v tar)" ]; then my_ext="tar,\$my_ext" fi @@ -79,8 +79,8 @@ webinstall() { my_package="\${1:-}" if [ -z "\$my_package" ]; then - echo "Usage: webi @ ..." - echo "Example: webi node@lts rg" + >&2 echo "Usage: webi @ ..." + >&2 echo "Example: webi node@lts rg" exit 1 fi @@ -96,7 +96,7 @@ webinstall() { -O "\$WEBI_BOOT/\$my_package-bootstrap.sh" fi if ! [ \$? -eq 0 ]; then - echo "error fetching '\$my_installer_url'" + >&2 echo "error fetching '\$my_installer_url'" exit 1 fi set -e