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 the removed programs list being empty #58

Merged
merged 1 commit into from
Jan 4, 2016
Merged

Fix the removed programs list being empty #58

merged 1 commit into from
Jan 4, 2016

Conversation

RB14060
Copy link
Contributor

@RB14060 RB14060 commented Dec 19, 2015

The IF command that ran that inserts the line into the removed program list if it was empty was flawed. The FC program sets an environment variable of ERRORLEVEL with a value of 0 if there's no difference. The IF check used !ERRORLEVEL! instead of %ERRORLEVEL%, which caused it to not execute. You may want to check your other comparisons.

@RB14060
Copy link
Contributor Author

RB14060 commented Dec 19, 2015

This is the same as PR #57 but this time my local codebase is where it should be.

@vocatus
Copy link
Contributor

vocatus commented Dec 23, 2015

I see nemchik referenced this; is there a consensus on which method is preferred?

@nemchik
Copy link
Contributor

nemchik commented Dec 23, 2015

In this case, ERRORLEVEL makes 2 lines of code, but it's readable. Using redirection would allow one line of code (or two) but may be less readable.

I've never liked using ERRORLEVEL out of personal preference.

@RB14060
Copy link
Contributor Author

RB14060 commented Dec 23, 2015

It doesn't make a difference to me either way, it just means that someone will have to do the work to ensure that every instance gets changed across all files (and I'm sure there's quite a few of them!)

@vocatus
Copy link
Contributor

vocatus commented Jan 4, 2016

Merged.

vocatus added a commit that referenced this pull request Jan 4, 2016
Fix for removed program list being empty if no programs removed
@vocatus vocatus merged commit a400e46 into bmrf:master Jan 4, 2016
@RB14060 RB14060 deleted the empty-removed-programs-list branch January 4, 2016 16:26
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.

3 participants