mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-13 10:16:01 +00:00
nix: fix setup.sh script when running on MacOS
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
56a1df03f0
commit
da76200433
@ -28,12 +28,12 @@ function install_nix() {
|
||||
fi
|
||||
}
|
||||
|
||||
if [[ ! -x "$(command -v git)" ]]; then
|
||||
if [[ ! -x "$(command -v curl)" ]]; then
|
||||
echo -e "${RED}The 'curl' utility is required for Nix installation.${RST}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$(source /etc/os-release && echo "${NAME}")" == *NixOS* ]]; then
|
||||
if [[ "$(source /etc/os-release 2>/dev/null && echo "${NAME}")" == *NixOS* ]]; then
|
||||
echo -e "${GRN}Already running NixOS.${RST}"
|
||||
exit
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user