Commit d2e1437
committed
Check exit status directly in install script
The installation script checks for an existing installation in the PATH in order to provide appropriate advice to the
user about adding the installation to their their PATH environment variable.
This check is done by checking the exit status of `command -v`. The previous use of `$?` for that check was unnecessary
since the command itself can be checked.
This change is required for compliance with ShellCheck rule SC2181:
https://github.com/koalaman/shellcheck/wiki/SC21811 parent 8f9dbe5 commit d2e1437
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
| 189 | + | |
191 | 190 | | |
192 | 191 | | |
193 | 192 | | |
| |||
0 commit comments