From 016d3b27a12cabfb484649deb69299f5446a9aa8 Mon Sep 17 00:00:00 2001 From: Marta Sokolska Date: Fri, 26 Sep 2025 19:45:59 +0200 Subject: [PATCH] Flake update can fail actually --- nixie | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixie b/nixie index 7b204d3..6af40eb 100755 --- a/nixie +++ b/nixie @@ -78,6 +78,11 @@ UPDATE () { *) echo -e "${IPurple}Updating flake.lock..." 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. " BUILD ;;