mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-14 02:35:54 +00:00
Make sure setup script runs on linux
This commit is contained in:
parent
0a7ba2fe3d
commit
b0a1aab033
@ -10,14 +10,9 @@ function is_linux() {
|
|||||||
[[ "$OS" =~ Linux ]]
|
[[ "$OS" =~ Linux ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
function is_ubuntu() {
|
|
||||||
! is_linux && return 1
|
|
||||||
(lsb_release -a 2>/dev/null | grep -q Ubuntu) && (command -v apt >/dev/null)
|
|
||||||
}
|
|
||||||
|
|
||||||
function exit_unless_os_supported() {
|
function exit_unless_os_supported() {
|
||||||
if ! is_macos && ! is_ubuntu; then
|
if ! is_macos && ! is_linux; then
|
||||||
cecho "@red[[This install script currently supports Mac OS X and Ubuntu \
|
cecho "@red[[This install script currently supports Mac OS X and Linux \
|
||||||
via apt. To manually install, please visit the wiki for more information:]]
|
via apt. To manually install, please visit the wiki for more information:]]
|
||||||
|
|
||||||
@blue[[https://wiki.status.im/Building_Status]]"
|
@blue[[https://wiki.status.im/Building_Status]]"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user