Pattern: Use of unsupported <=
/>=
in shell script
Issue: -
The operators <=
and >=
are not supported by Bourne shells. Instead of "less than or equal", rewrite as "not greater than".
Example of incorrect code:
[[ a <= b ]]
Example of correct code:
[[ ! a > b ]]