$ ./install.sh --help
Homebrew Installer
Usage: [NONINTERACTIVE=1] [CI=1] ./install.sh [options]
-h, --help Display this message.
NONINTERACTIVE Install without prompting.
CI Imply NONINTERACTIVE.
$ ./install.sh -h
Homebrew Installer
Usage: [NONINTERACTIVE=1] [CI=1] ./install.sh [options]
-h, --help Display this message.
NONINTERACTIVE Install without prompting.
CI Imply NONINTERACTIVE.
$ ./install.sh --foo
Warning: Unrecognized option: '--foo'
Homebrew Installer
Usage: [NONINTERACTIVE=1] [CI=1] ./install.sh [options]
-h, --help Display this message.
NONINTERACTIVE Install without prompting.
CI Imply NONINTERACTIVE.
I didn't modify the README since it already mentions the only supported option.
ShellCheck complained about the shift (unreachable), so I commented it out. I didn't remove it to make it easier in case a new option gets added in the future.
The ShellCheck warning:
$ shellcheck install.sh
In install.sh line 99:
shift # Command appears to be unreachable. Check usage (or ignore if invoked indirectly). shellcheck (SC2317)
^-- SC2317 (info): Command appears to be unreachable. Check usage (or ignore if invoked indirectly).
For more information:
https://www.shellcheck.net/wiki/SC2317 -- Command appears to be unreachable...
Note: I assumed CI and NONINTERACTIVE are interchangeable. There was a closed issue that was solved by setting CI=1 and I don't know if NONINTERACTIVE=1 would have worked as well.
Adapted from
uninstall.sh
:I didn't modify the README since it already mentions the only supported option.
ShellCheck complained about the
shift
(unreachable), so I commented it out. I didn't remove it to make it easier in case a new option gets added in the future.The ShellCheck warning:
Note: I assumed
CI
andNONINTERACTIVE
are interchangeable. There was a closed issue that was solved by settingCI=1
and I don't know ifNONINTERACTIVE=1
would have worked as well.If they are equivalent, should
CI
be added touninstall.sh
for consistency?