Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bad conditions on if statements that were causing false DE detection
There are two instances of the condition: if [ -n "$DE" ]; then I think if statements with this condition were ALWAYS running, because at the beginning of detectde () $DE gets initialized to "Not Present". if [[ -z "$DE" || "$DE" = "Not Present" ]]; then There was one instance of this, which I believe is supposed to have a "==" vs "=". The first part of the condition is also NEVER false, since $DE gets initialized to "Not Present", as mentioned before, so I just removed it. Fixes KittyKatt#782 (and possibly others)
- Loading branch information