Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Line 5:
if cat /etc/*release | grep ^NAME | egrep 'CentOS|Red|Fedora'; then
^-- SC2196 (info): egrep is non-standard and deprecated. Use grep -E instead.
Line 9:
elif cat /etc/*release | grep ^NAME | egrep 'Ubuntu|Debian|Mint|Knoppix'; then
^-- SC2196 (info): egrep is non-standard and deprecated. Use grep -E instead.
Line 13:
elif ! echo
uname -a
| grep Darwin 2>&1 >/dev/null; then^-- SC2046 (warning): Quote this to prevent word splitting.
^-- SC2005 (style): Useless echo? Instead of 'echo $(cmd)', just use 'cmd'.
^-- SC2006 (style): Use $(...) notation instead of legacy backticks
...
.^-- SC2069 (warning): To redirect stdout+stderr, 2>&1 must be last (or use '{ cmd > file; } 2>&1' to clarify).
Did you mean: (apply this, apply all SC2006)
elif ! echo $(uname -a) | grep Darwin 2>&1 >/dev/null; then
Line 28:
source "$SCRIPT_PATH/lib/project_paths.sh"
^-- SC1091 (info): Not following: ./lib/project_paths.sh was not specified as input (see shellcheck -x).