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 shebang for protoc-gen-mypy.sh script #4568

Merged
merged 2 commits into from Oct 3, 2022

Conversation

GaetanLepage
Copy link
Contributor

Description

Changed the shebang in tools/protoc-gen-mypy.sh.in from #!/bin/bash to #!/usr/bin/env bash.

Motivation and Context

The tools/protoc-gen-mypy.sh.in file which generates the protoc-gen-mypy.sh script employs a shebang which assumes bash is in /bin.
However, this is not the case on all unix systems.
I propose to use the #!/usr/bin/env bash shebang instead.

@GaetanLepage GaetanLepage requested a review from a team as a code owner October 3, 2022 14:05
Signed-off-by: Gaetan Lepage <gaetan@glepage.com>
@jcwchen jcwchen added the run release CIs Use this label to trigger release tests in CI label Oct 3, 2022
Copy link
Member

@jcwchen jcwchen left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for catching this!

@jcwchen jcwchen added the build Issues related to ONNX builds and packages label Oct 3, 2022
@jcwchen jcwchen enabled auto-merge (squash) October 3, 2022 16:19
@jcwchen jcwchen merged commit dc56acc into onnx:main Oct 3, 2022
broune pushed a commit to broune/onnx that referenced this pull request May 6, 2023
Signed-off-by: Gaetan Lepage <gaetan@glepage.com>

Signed-off-by: Gaetan Lepage <gaetan@glepage.com>
Co-authored-by: Chun-Wei Chen <jacky82226@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues related to ONNX builds and packages run release CIs Use this label to trigger release tests in CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants