Use $OS to determine whether running on windows or not.
@@ -34,9 +34,8 @@ common_file_to_load () {
# Also check if $COMSPEC is set or not.
#
windows_detect() {
- BUILD_OS=`uname`
WINDOWS=0
- if [ $BUILD_OS = "Windows_NT" ]; then
+ if [ $OS = "Windows_NT" ]; then
WINDOWS=1
fi
if [ $WINDOWS -eq 1 -a -z "$COMSPEC" ]; then
