Flake update can fail actually

This commit is contained in:
Marta 2025-09-26 19:45:59 +02:00
parent 9ce03b8fca
commit 016d3b27a1
Signed by: marta
GPG key ID: 61B6652511C9A28C

5
nixie
View file

@ -78,6 +78,11 @@ UPDATE () {
*) *)
echo -e "${IPurple}Updating flake.lock..." echo -e "${IPurple}Updating flake.lock..."
sudo nix flake update sudo nix flake update
if [ $? -ne 0 ]; then
echo -e "[ ${Red}error ${NC}] ${Red}Updating flake.lock failed.${NC}"
CHOOSE_CASE
QUIT
fi
echo -e -n "Updated. " echo -e -n "Updated. "
BUILD BUILD
;; ;;