Skip to content

Commit

Permalink
Finding OSTYPE is not exists (#892)
Browse files Browse the repository at this point in the history
* Finding OSTYPE is not exists

* formatting and Darwin

* tabs
  • Loading branch information
mojtaba-komeili committed Aug 30, 2022
1 parent f8bf7b1 commit 51a2b1d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions mephisto/scripts/metrics/install_metrics.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
if [ -z "$OSTYPE" ]
then
OSTYPE=$(uname)
echo "Checking OS type returned ${OSTYPE}"
fi
case "$OSTYPE" in
darwin*)
darwin* | Darwin*)
platform='darwin'
;;
linux*)
linux* | Linux*)
platform='linux'
;;
*)
Expand Down Expand Up @@ -60,4 +65,4 @@ kill $GRAFANA_PID

sleep 3

echo "\nInstall should have completed, please view above for errors"
echo "\nInstall should have completed, please view above for errors"

0 comments on commit 51a2b1d

Please sign in to comment.