tests/utils/utils.sh: use `[[ ... ]]` instead of `[` or `test`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 10 Nov 2023 04:47:14 +0000 (23:47 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 7 Feb 2024 21:25:56 +0000 (16:25 -0500)
commitfcb7edee65ce1312c54746d4816a4d0ca6bce7bf
tree65c814275a353cb30df39614d086aa089fe544a7
parentce8c884d114d141a5ee7c560ec2cffd766d5228c
tests/utils/utils.sh: use `[[ ... ]]` instead of `[` or `test`

Even if `[` and `test` are Bash built-ins for POSIX shell backward
compatibility, `[[` has more features, and since we're using it at least
at once place, it makes sense to always use it in my opinion.

Also use `==` instead of `=`, the latter only existing for POSIX shell
backward compatibility, the former being like pretty much all the other
programming languages we use.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ic3268e8d544bbbdf8f013ca3ca0659c4bc699d6d
tests/utils/utils.sh
This page took 0.024945 seconds and 4 git commands to generate.