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 various ShellCheck violations #57

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

hyperupcall
Copy link
Contributor

@hyperupcall hyperupcall commented Feb 16, 2024

In the spirit of tfutils/tfenv#426 and tfutils/tfenv#424, this fixes various ShellCheck violations. They include:

Signed-off-by: Edwin Kofler <edwin@kofler.dev>
local pwd="$(pwd)";
log 'debug' "Deleting ${pwd}/version";

log 'debug' "Deleting ${PWD}/version";
Copy link
Contributor

Choose a reason for hiding this comment

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

where PWD is declared?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kvendingoldo PWD is declared/set by the cd builtin and by the shell on initialization. It's in POSIX.

Copy link
Contributor

@kvendingoldo kvendingoldo left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@kvendingoldo kvendingoldo merged commit 12ea420 into tofuutils:main Feb 16, 2024
3 of 5 checks passed
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