status-react/scripts/lib/setup/platform.sh

25 lines
444 B
Bash
Raw Normal View History

2017-12-01 17:17:25 +00:00
#!/usr/bin/env bash
OS=$(uname -s)
function is_macos() {
[[ "$OS" =~ Darwin ]]
}
function is_linux() {
[[ "$OS" =~ Linux ]]
}
function exit_unless_os_supported() {
2017-12-21 09:28:55 +00:00
if ! is_macos && ! is_linux; then
cecho "@red[[This install script currently supports Mac OS X and Linux \
2017-12-01 17:17:25 +00:00
via apt. To manually install, please visit the wiki for more information:]]
@blue[[https://wiki.status.im/Building_Status]]"
echo
exit 1
fi
}