Skip to content

Conversation

@ernstki
Copy link
Contributor

@ernstki ernstki commented Nov 9, 2021

Commit ed8a3b6 broke OS detection on non-Linux OSes, because $CYGWIN_NT expands to nothing when the environment variable CYGWIN_NT is undefined.

What @DookTibs meant was just "$sack__OS == "CYGWIN_NT"* (no dollar sign). It still worked under Cygwin, but just by luck, because $sack__OS == *. Adding set -u / set -o nounset at the top of the script would stop these kinds of errors from slipping through, but that's a problem for another day.

This PR should fix that problem, and makes OS detection work again on (at least) macOS.

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.

1 participant