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

Remove unused variable BINARY #57

Merged
merged 1 commit into from
Jun 2, 2021
Merged

Remove unused variable BINARY #57

merged 1 commit into from
Jun 2, 2021

Conversation

hanfried
Copy link
Contributor

I run per default Shellcheck on every script I run and for the godownloader.sh script it complains about an unused variable BINARY:

➜  ~ shellcheck /tmp/godownloader.sh 

In /tmp/godownloader.sh line 340:
BINARY=kail
^----^ SC2034: BINARY appears unused. Verify use (or export if used externally).

For more information:
  https://www.shellcheck.net/wiki/SC2034 -- BINARY appears unused. Verify use...

This references to the line BINARY=kail in the main program of the script at this line

BINARY=kail

It seems to me that the BINARY variable is deprecated and not used any more as the REPO and PROJECT_NAME references to kail and we get from there the release data.
As I find it confusing and shellcheck should pass for any system related program with access to a possible production cluster IMHO,
I think it's either time to remove the BINARY completely or if it not intended, the PR is a wake up in case :-)

I run per default [Shellcheck](https://github.com/koalaman/shellcheck) on every script I run and for the godownloader.sh script it complains about an unused variable `BINARY`:

```
➜  ~ shellcheck /tmp/godownloader.sh 

In /tmp/godownloader.sh line 340:
BINARY=kail
^----^ SC2034: BINARY appears unused. Verify use (or export if used externally).

For more information:
  https://www.shellcheck.net/wiki/SC2034 -- BINARY appears unused. Verify use...

```
This references to the line `BINARY=kail` in the main program of the script at this line https://github.com/boz/kail/blob/58d7816d3d93cccb1903603512e40919a843c760/godownloader.sh#L340

It seems to me that the BINARY variable is deprecated and not used any more as the REPO and PROJECT_NAME references to kail and we get from there the release data.
As I find it confusing and shellcheck should pass for any system related program with access to a possible production cluster IMHO,
I think it's either time to remove the BINARY completely or if it not intended, the PR is a wake up in case :-)
@boz
Copy link
Owner

boz commented Jun 2, 2021

Thanks @hanfried

@boz boz merged commit 7b1aa99 into boz:master Jun 2, 2021
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