25 lines
444 B
Bash
Raw Normal View History

2017-12-01 09:17:25 -08: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 10:28:55 +01:00
if ! is_macos && ! is_linux; then
cecho "@red[[This install script currently supports Mac OS X and Linux \
2017-12-01 09:17:25 -08:00
via apt. To manually install, please visit the wiki for more information:]]
@blue[[https://wiki.status.im/Building_Status]]"
echo
exit 1
fi
}