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

25 lines
436 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 \
via apt. To manually install, please visit the docs for more information:]]
2017-12-01 17:17:25 +00:00
@blue[[https://status.im/build_status]]"
2017-12-01 17:17:25 +00:00
echo
exit 1
fi
}