-
Notifications
You must be signed in to change notification settings - Fork 31
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
base: fix xx-info failing on macOS #72
Conversation
macOS doesn't have a /etc/os-release, which caused the script to fail when running on the host. Also adds detection if /etc/os-release exists. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
c5f2a6a
to
eac387d
Compare
removed the bit about "unknown", as it was already initialised to "unknown" by default |
@@ -328,7 +328,7 @@ case "$1" in | |||
echo $XX_TRIPLE | |||
;; | |||
"vendor") | |||
echo $XX_VENDOR | |||
echo "$XX_VENDOR" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validate was complaining about this one not being quoted (not sure why it only complains about this one, and not the other ones 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes this one is strange, looks good now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
base: fix xx-info failing on macOS
macOS doesn't have a /etc/os-release, which caused the script to fail
when running on the host.
Also adds detection if /etc/os-release exists,.