fix detecting NixOS, uname can be deceptive
specifically inside of Docker containers Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
999bb9940e
commit
17e5fc4dd4
|
@ -26,7 +26,7 @@ if [[ ! -x "$(command -v git)" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$(uname -v)" == *NixOS* ]]; then
|
if [[ "$(source /etc/os-release && echo "${NAME}")" == *NixOS* ]]; then
|
||||||
echo -e "${GRN}Already running NixOS.${RST}"
|
echo -e "${GRN}Already running NixOS.${RST}"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue