25 lines
436 B
Bash
Executable File
25 lines
436 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
OS=$(uname -s)
|
|
|
|
function is_macos() {
|
|
[[ "$OS" =~ Darwin ]]
|
|
}
|
|
|
|
function is_linux() {
|
|
[[ "$OS" =~ Linux ]]
|
|
}
|
|
|
|
function exit_unless_os_supported() {
|
|
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:]]
|
|
|
|
@blue[[https://status.im/build_status]]"
|
|
|
|
echo
|
|
|
|
exit 1
|
|
fi
|
|
}
|