Skip to content

Commit a2ccebc

Browse files
committed
Use POSIX-compliant string comparison in bash tests
This replaces '==' with '=' in bash test expressions for POSIX compliance. While '==' works in bash, '=' is the POSIX standard and ensures better portability across different shells.
1 parent 01cf2ae commit a2ccebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/test-netdev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ TEST_NETDEV() {
2323
local NETDEV="$1"
2424
local CMD_PREFIX=""
2525

26-
if [ "$NETDEV" == "tap" ]; then
26+
if [ "$NETDEV" = "tap" ]; then
2727
CMD_PREFIX="sudo "
2828
fi
2929

0 commit comments

Comments
 (0)