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)
Mon, Jun 24, 7:41 PM
Unknown Object (File)
Sat, Jun 15, 8:22 PM
Unknown Object (File)
May 27 2024, 2:35 AM
Unknown Object (File)
May 27 2024, 2:35 AM
Unknown Object (File)
May 27 2024, 2:34 AM
Unknown Object (File)
May 15 2024, 10:07 AM
Unknown Object (File)
May 5 2024, 11:05 PM
Unknown Object (File)
Apr 20 2024, 6:11 PM

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.