modules/nixos/common/update.bash: return -> exit

This commit is contained in:
zowoq 2024-09-26 11:24:35 +10:00
parent 4f10f3d3c0
commit 4f3703fdc9

View file

@ -3,10 +3,10 @@ hostname=$(uname -n)
p=$(curl -L https://buildbot.nix-community.org/nix-outputs/nix-community/infra/master/"$arch"-linux.host-"$hostname")
if [[ "$(readlink /run/booted-system)" == "$p" ]]; then
return
exit 0
fi
if [[ "$(readlink /run/current-system)" == "$p" ]]; then
return
exit 0
fi
nix-store --realise "$p"