Skip to content

Fix various ShellCheck violations#57

Merged
kvendingoldo merged 1 commit intotofuutils:mainfrom
hyperupcall:hyperupcall-shellcheck
Feb 16, 2024
Merged

Fix various ShellCheck violations#57
kvendingoldo merged 1 commit intotofuutils:mainfrom
hyperupcall:hyperupcall-shellcheck

Conversation

@hyperupcall
Copy link
Copy Markdown
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>
@hyperupcall hyperupcall force-pushed the hyperupcall-shellcheck branch from d46003e to 5f89a32 Compare February 16, 2024 10:49
local pwd="$(pwd)";
log 'debug' "Deleting ${pwd}/version";

log 'debug' "Deleting ${PWD}/version";
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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