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 ;;