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
Unknown Object (File)
Fri, Jan 31, 8:45 PM
Unknown Object (File)
Jan 16 2025, 11:12 AM
Unknown Object (File)
Jan 1 2025, 9:30 AM
Unknown Object (File)
Dec 28 2024, 5:56 PM
Unknown Object (File)
Dec 21 2024, 12:24 AM
Unknown Object (File)
Dec 21 2024, 12:24 AM
Unknown Object (File)
Dec 21 2024, 12:24 AM
Unknown Object (File)
Dec 21 2024, 12:20 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.