Skip to content

Commit

Permalink
Merge pull request #283 from complexsplit/ostype-darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
rschu1ze authored Jan 8, 2025
2 parents 46a21e5 + a5c23a4 commit 983805a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hardware/hardware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ QUERY_NUM=1

cat "$QUERIES_FILE" | sed "s/{table}/hits/g" | while read -r query; do
sync
if [ "${OS}" = "Darwin" ]
if [[ "$OSTYPE" == "darwin"* ]]
then
sudo purge > /dev/null
else
Expand All @@ -92,7 +92,7 @@ echo

touch {cpu_model,cpu,df,memory,memory_total,blk,mdstat,instance}.txt

if [ "${OS}" = "Darwin" ]
if [[ "$OSTYPE" == "darwin"* ]]
then
echo '----Version, build id-----------'
./clickhouse local --query "SELECT format('Version: {}', version())"
Expand Down

0 comments on commit 983805a

Please sign in to comment.