Page MenuHomePhabricator

Use `==` in string equality check in `detect_abis.sh`
ClosedPublic

Authored by abosh on Aug 16 2022, 6:18 PM.
Tags
None
Referenced Files
F3574786: D4853.diff
Sat, Dec 28, 5:56 PM
Unknown Object (File)
Sat, Dec 21, 12:24 AM
Unknown Object (File)
Sat, Dec 21, 12:24 AM
Unknown Object (File)
Sat, Dec 21, 12:24 AM
Unknown Object (File)
Sat, Dec 21, 12:20 AM
Unknown Object (File)
Fri, Dec 6, 3:28 PM
Unknown Object (File)
Nov 16 2024, 10:23 AM
Unknown Object (File)
Nov 5 2024, 8:15 AM

Details

Summary

Noticed this after landing D4851.

Test Plan

Ran yarn react-native run-android in native directory again, built successfully.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

= is the same as == in any shell that supports [[...]]

This revision is now accepted and ready to land.Aug 16 2022, 7:06 PM
In D4853#140513, @jon wrote:

= is the same as == in any shell that supports [[...]]

True (which is why the original code worked)! But I think stylistically == is better than = for equality, because = feels like assignment, especially to someone not familiar with bash.