ohmyzsh/tools
Léa Gris 95a06f3927
refactor(installer): fix static analysis warnings (#9529)
* refactor(install.sh): fix static analysis warnings

Clear all warnings and errors raised by shellcheck.net static analysis.

- Replace non-POSIX shell use of `$OSTYPE` by POSIX compliant check on `uname -o`.
- Move variables out of`printf` format string.
- Refactor/simplify string formatters for error and underline.
- Fix expansion of arguments to a single string `$*` rather than individual elements `$@` within the error and underline formatters.

* fix(uname): non-posix -o option

* fix(install.sh): non portable which

Replaced non-portable `which zsh` by portable `command -v zsh`
2021-03-16 00:06:06 +01:00
..
changelog.sh fix(changelog): fix spacing in breaking changes message 2021-01-10 20:43:32 +01:00
check_for_upgrade.sh fix(update): don't error on upgrade no-op (#9685) 2021-03-01 08:17:54 +01:00
install.sh refactor(installer): fix static analysis warnings (#9529) 2021-03-16 00:06:06 +01:00
require_tool.sh Fix version parsing. Now working with command $ zsh --version 2011-04-13 17:24:44 +02:00
theme_chooser.sh use https everywhere (#6574) 2018-08-07 20:42:01 +02:00
uninstall.sh fix(uninstall): fix renaming .zshrc when no original rc file found 2021-03-15 19:51:31 +01:00
upgrade.sh fix(update): don't error on upgrade no-op (#9685) 2021-03-01 08:17:54 +01:00