Skip to content

fix variable check in xcode_backend.sh#24368

Merged
dnfield merged 4 commits intoflutter:masterfrom
dnfield:master
Nov 15, 2018
Merged

fix variable check in xcode_backend.sh#24368
dnfield merged 4 commits intoflutter:masterfrom
dnfield:master

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Nov 15, 2018

Fixes #24343

The current test in there is wrong.

This also removes some trailing whitespace because my editor is now configured to do that automatically.

# Sign the binaries we moved.
local identity="${EXPANDED_CODE_SIGN_IDENTITY_NAME:-$CODE_SIGN_IDENTITY}"
if (${identity} != ""); then
if [[ ! -z "$identity" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use -n?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Any chance we can write a tests that would have caught this?

@dnfield
Copy link
Contributor Author

dnfield commented Nov 15, 2018

@goderbauer - I have some tests for this script, but it's hard to catch some of these that are more deeply nested without a full on integration test. I ended up reproducing this while working on an integration test that would catch it in the future.

@cbracken
Copy link
Member

lgtm

@dnfield dnfield merged commit 091b73a into flutter:master Nov 15, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No code signature found - Add Flutter to existing apps, iOS real device issue, Xcode Version 10.1

5 participants