flake.nix: catch more errors in list-upgradable

This commit is contained in:
Astro 2022-01-08 18:17:17 +01:00
parent 88972474d0
commit 84085a0fcc
1 changed files with 3 additions and 1 deletions

View File

@ -106,8 +106,10 @@
echo -e "$GREEN"current"$NORMAL $RUNNING_VER"
elif [ "$RUNNING_VER" = "$CURRENT_VER" ]; then
echo -e "$GREEN"modified"$NORMAL $RUNNING_VER"
else
elif [ -n "$RUNNING_VER" ]; then
echo -e "$YELLOW"outdated"$NORMAL $RUNNING_VER < $CURRENT_VER"
else
echo -e "$RED"error"$NORMAL $RUNNING_VER"
fi
fi
echo -n -e "$NORMAL"