Skip to content

Commit 01839ea

Browse files
committed
Fix after sync
Signed-off-by: Abolfazl Shahbazi <abolfazl.shahbazi@intel.com>
1 parent 1a8460c commit 01839ea

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

benchmarks/common/tensorflow/start.sh

+16-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,20 @@ function _running-in-container()
6868
[ -f /.dockerenv ]
6969
}
7070

71-
OS_PLATFORM=""
71+
# check if running on Windows OS
72+
PLATFORM='unknown'
73+
unamestr=`uname`
74+
if [[ "$unamestr" == 'Linux' ]]; then
75+
PLATFORM='linux'
76+
elif [[ "$unamestr" == "MSYS"* ]]; then
77+
PLATFORM='windows'
78+
else
79+
echo "$unamestr is not supported!"
80+
fi
81+
echo
82+
echo "Running on ${PLATFORM}"
83+
echo
84+
7285
if [[ ${PLATFORM} == "linux" ]]; then
7386
# Check the Linux PLATFORM distribution if CentOS, Debian or Ubuntu
7487
OS_PLATFORM=$(egrep '^(NAME)=' /etc/os-release)
@@ -94,8 +107,8 @@ if [[ ${PLATFORM} == "linux" ]]; then
94107
echo "${OS_PLATFORM} version ${OS_VERSION} is not currently supported."
95108
exit 1
96109
fi
97-
98-
echo "Running on ${OS_PLATFORM} version ${OS_VERSION} is supported."
110+
echo "Running on ${OS_PLATFORM} version ${OS_VERSION} is supported."
111+
fi
99112

100113
if [[ ${NOINSTALL} != "True" ]]; then
101114
# set env var before installs so that user interaction is not required

0 commit comments

Comments
 (0)