mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 17:31:28 +00:00
8ffa3cf439
The previous behavior was incorrect because `if` was checking the return status of the `[` command which was never going to be an error. `[` seems to only return an error if no args are provided. This was basically a useless use of `[` anyway since it was just meant as a straight interpretation of command exit, something that `if` can do itself. Compare: ```sh [ ]; echo ?=$? [ /bin/false ]; echo ?=$? if [ /bin/false ]; then echo this is the unintended bug; fi if /bin/false; then echo this will not be printed; fi ``` |
||
---|---|---|
.. | ||
_incr_version | ||
grimshot | ||
inactive-windows-transparency.py |