mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-14 04:16:33 +02:00
build: get_platform function reused
This commit is contained in:
parent
af30cfdd6e
commit
3abee20196
29
utils.sh
Executable file
29
utils.sh
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
function get_platform {
|
||||
local platform="unknown"
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
platform="darwin"
|
||||
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
||||
platform="linux"
|
||||
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"
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user