Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build.sh): Cosmetic spacing fix #199

Merged
merged 2 commits into from
Jun 25, 2019

Conversation

rhuss
Copy link
Contributor

@rhuss rhuss commented Jun 22, 2019

Iterm has an issue with rendering multi byte unicode chars. This
commit adds an extra space to certain emojis on iterm only.

This fixes current rendering issues on Linux term because that extra
space was added previously unconditionally.

Iterm has an issue with rendering multi byte unicode chars. This
commit adds an extra space to certain emojis on iterm only.

This fixes current rendering issues on Linux term because that extra
space was added previously unconditionally.
@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Jun 22, 2019
@knative-prow-robot knative-prow-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 22, 2019
@rhuss
Copy link
Contributor Author

rhuss commented Jun 22, 2019

Alternatively the icons could be exchanged to emoji which work every where (smaller unicode points)

@mattmoor mattmoor removed their request for review June 23, 2019 15:58
@adrcunha
Copy link
Contributor

/retest

@adrcunha
Copy link
Contributor

=========================
==== BUILDING CLIENT ====
=========================
/home/prow/go/src/github.com/knative/client/hack/build.sh: line 30: ITERM_PROFILE: unbound variable
ERROR: cluster setup failed

@@ -25,6 +25,11 @@ fi

set -eu

# Temporary fix for iTerm issue https://gitlab.com/gnachman/iterm2/issues/7901
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest replacing the 4 lines with

[[ -n "${ITERM_PROFILE:-}" ]] S=" " || S=""

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated but kept the if-syntax although a bit more terse but easier to understand for non-shell gurus.

@cppforlife
Copy link

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 25, 2019
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cppforlife, rhuss

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 25, 2019
@knative-prow-robot knative-prow-robot merged commit a0eb611 into knative:master Jun 25, 2019
maximilien pushed a commit to maximilien/client that referenced this pull request Jul 1, 2019
* fix(build.sh): Cosmetic spacing fix

Iterm has an issue with rendering multi byte unicode chars. This
commit adds an extra space to certain emojis on iterm only.

This fixes current rendering issues on Linux term because that extra
space was added previously unconditionally.

* fix(build.sh): Avoid uninitialized variable ITERM_PROFILE
coryrc pushed a commit to coryrc/client that referenced this pull request May 14, 2020
* Scripts can customize the behavior by providing their own function, plus pre/post actions.

Part of knative#101.

Bonuses:
* moved documentation to README
* added basic tests for the feature
* moved the helper tests to a separate directory for clarity
* refactored checking if a function exists into a function
* test-infra presubmit now uses the default integration test runner

* Replace last instance of "type -t"

* Make custom flag smoke test a unit test

* Explain test objective
@rhuss rhuss deleted the pr/build-sh-spacing branch March 9, 2021 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants