We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3bceb46 + eac387d commit 9ef71c7Copy full SHA for 9ef71c7
base/xx-info
@@ -99,13 +99,13 @@ if [ -n "$TARGETPLATFORM" ]; then
99
fi
100
101
# detect distro vendor
102
-# shellcheck disable=SC1091
103
-if . /etc/os-release 2>/dev/null; then
104
- XX_VENDOR=$ID
105
-fi
106
-
107
if [ "$TARGETOS" = "darwin" ]; then
108
XX_VENDOR="apple"
+elif [ -f /etc/os-release ]; then
+ # shellcheck disable=SC1091
+ if . /etc/os-release 2>/dev/null; then
+ XX_VENDOR=$ID
+ fi
109
110
111
vendor=""
@@ -328,7 +328,7 @@ case "$1" in
328
echo $XX_TRIPLE
329
;;
330
"vendor")
331
- echo $XX_VENDOR
+ echo "$XX_VENDOR"
332
333
"libc") # this is not abi, just the prefix
334
echo $XX_LIBC
0 commit comments