monero-gui/utils.sh

34 lines
583 B
Bash
Raw Normal View History

2016-09-22 21:08:08 +00:00
#!/bin/bash
function get_platform {
local platform="unknown"
if [ "$(uname)" == "Darwin" ]; then
platform="darwin"
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
2016-12-15 13:56:33 +00:00
if [ "$(expr substr $(uname -m) 1 6)" == "x86_64" ]; then
platform="linux64"
else
platform="linux32"
fi
2016-09-22 21:08:08 +00:00
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW64_NT" ]; then
platform="mingw64"
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]; then
platform="mingw32"
fi
echo "$platform"
}