summaryrefslogtreecommitdiff
path: root/scripts/ostype.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ostype.sh')
-rwxr-xr-xscripts/ostype.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/ostype.sh b/scripts/ostype.sh
index f3f16a45b..bf2446213 100755
--- a/scripts/ostype.sh
+++ b/scripts/ostype.sh
@@ -1,5 +1,10 @@
#!/usr/bin/env bash
+if [ ! -z "${GOHOSTOS+x}" ]; then
+ echo "${GOHOSTOS}"
+ exit 0
+fi
+
UNAME=$(uname)
if [ "${UNAME}" = "Darwin" ]; then