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 shell script execute after su #1581

Merged
merged 1 commit into from
Oct 1, 2019
Merged

Conversation

zhangn1985
Copy link
Contributor

su xxx -c bash a.sh
it will execute like su xxx -c bash and ignore a.sh

in order to do right way

su xxx -c "bash a.sh"

Signed-off-by: Zhang Ning 832666+zhangn1985@users.noreply.github.com

`su xxx -c bash a.sh`
it will execute like `su xxx -c bash` and ignore a.sh

in order to do right way

`su xxx -c "bash a.sh"`
@igorpecovnik igorpecovnik merged commit de58ac1 into armbian:master Oct 1, 2019
@zhangn1985 zhangn1985 deleted the patch-1 branch October 1, 2019 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants