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

Shellcheck #107

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

Shellcheck #107

wants to merge 1 commit into from

Conversation

chrisfinazzo
Copy link

No description provided.

@@ -18,6 +18,7 @@ sleep 2

## now check what shell is running
shell_type=$(basename "$SHELL")
# shellcheck disable=SC2034
Copy link
Member

Choose a reason for hiding this comment

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

What's the unused variable here?

Copy link
Author

Choose a reason for hiding this comment

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

I think this is more that the specific variable is unknown, rather than undefined. The presence of ? would seem to indicate that the shell being used is not one of the known types and could be something else entirely.

Looking at the documentation - at least to my eyes - this looked like one of the exceptional conditions which produces a false warning, so as long as the script still works as intended, it can be ignored.

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.

None yet

2 participants