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

Explicitly use bash to fix "bad substitution" error #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

neiser
Copy link

@neiser neiser commented Feb 16, 2022

When I run the nsenter-node.sh script without this change, I get the following error:

/home/agr/.bin/nsenter-node.sh: 9: Bad substitution

I think that's because /bin/sh is not bash on my system. So let's explicitly declare in the shebang that we use bash. Also use the recommended /usr/bin/env to find the path to bash.

When I run the `nsenter-node.sh` script without this change, I get the following error:
```
/home/agr/.bin/nsenter-node.sh: 9: Bad substitution
```
I think that's because `/bin/sh` is not bash on my system. So let's explicitly declare in the shebang that we use bash. Also use the recommended `/usr/bin/env` to find the path to bash.
@liyihuang
Copy link

I also have this issue and hope this can be merged to the main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants