Skip to content

Commit

Permalink
Merge pull request #72 from thaJeztah/fix_vendor_macos
Browse files Browse the repository at this point in the history
base: fix xx-info failing on macOS
  • Loading branch information
crazy-max authored Jul 7, 2022
2 parents 3bceb46 + eac387d commit 9ef71c7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions base/xx-info
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ if [ -n "$TARGETPLATFORM" ]; then
fi

# detect distro vendor
# shellcheck disable=SC1091
if . /etc/os-release 2>/dev/null; then
XX_VENDOR=$ID
fi

if [ "$TARGETOS" = "darwin" ]; then
XX_VENDOR="apple"
elif [ -f /etc/os-release ]; then
# shellcheck disable=SC1091
if . /etc/os-release 2>/dev/null; then
XX_VENDOR=$ID
fi
fi

vendor=""
Expand Down Expand Up @@ -328,7 +328,7 @@ case "$1" in
echo $XX_TRIPLE
;;
"vendor")
echo $XX_VENDOR
echo "$XX_VENDOR"
;;
"libc") # this is not abi, just the prefix
echo $XX_LIBC
Expand Down

0 comments on commit 9ef71c7

Please sign in to comment.