Skip to content

Conversation

chrisfinazzo
Copy link

No description provided.


## 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.

2 participants