Skip to content

Commit

Permalink
nix: fix setup.sh script when running on MacOS
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed Jan 12, 2022
1 parent 525577a commit 5f61e50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nix/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5f61e50

Please sign in to comment.