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)
Wed, Sep 18, 4:26 PM
Unknown Object (File)
Wed, Sep 11, 2:01 AM
Unknown Object (File)
Wed, Sep 11, 2:01 AM
Unknown Object (File)
Wed, Sep 11, 2:01 AM
Unknown Object (File)
Wed, Sep 11, 1:59 AM
Unknown Object (File)
Aug 17 2024, 5:25 PM
Unknown Object (File)
Aug 2 2024, 5:33 AM
Unknown Object (File)
Jul 22 2024, 1:06 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.