Update `test` '-a' and '-o' to '&&' and '||'
29 Apr
2023
29 Apr
'23
4:50 a.m.
alsa-project/alsa-utils pull request #206 was opened from wileyhy:
lines 50, 103: in two compound ['s, replace '-a' with '] && [' SC2166 – Prefer `[ p ] && [ q ]` as `[ p -a q ]` is not well defined. SC2107 – Instead of `[ a && b ]`, use `[ a ] && [ b ]`.
line 45: in a compound test command, change '-o' to '|| test' SC1139 – Use `||` instead of `-o` between test commands. SC2109 – Instead of `[ a || b ]`, use `[ a ] || [ b ]`.
https://www.shellcheck.net/wiki/SC%5B0-9%5D%7B4%7D
Request URL : https://github.com/alsa-project/alsa-utils/pull/206 Patch URL : https://github.com/alsa-project/alsa-utils/pull/206.patch Repository URL: https://github.com/alsa-project/alsa-utils
603
Age (days ago)
603
Last active (days ago)
0 comments
1 participants
participants (1)
-
GitHub pull_request - opened