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

quoting issues in shell scripts #17

Open
ghost opened this issue Mar 14, 2021 · 0 comments
Open

quoting issues in shell scripts #17

ghost opened this issue Mar 14, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@ghost
Copy link

ghost commented Mar 14, 2021

shellcheck result:

In intelmq-tutorial/ansible/files/reset-intelmq.sh line 5:
[ "root" != "$USER" ] && exec sudo $0 "$@"
                                   ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
[ "root" != "$USER" ] && exec sudo "$0" "$@"


In intelmq-tutorial/ansible/files/tutorial-to-html.sh line 5:
[ "user" != "$USER" ] && exec sudo -u user $0 "$@"
                                           ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
[ "user" != "$USER" ] && exec sudo -u user "$0" "$@"


In intelmq-tutorial/ansible/files/tutorial-to-html.sh line 9:
sudo chown $USER $DIR
           ^---^ SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
sudo chown "$USER" $DIR


In intelmq-tutorial/ansible/files/tutorial-update.sh line 5:
[ "user" != "$USER" ] && exec sudo -u user $0 "$@"
                                           ^-- SC2086: Double quote to prevent globbing and word splitting.

Did you mean: 
[ "user" != "$USER" ] && exec sudo -u user "$0" "$@"

For more information:
  https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...
@ghost ghost added the good first issue Good for newcomers label Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

0 participants