fix nyx-tui - 1.1.1

also error if rebuild failed cause of git
This commit is contained in:
Peritia 2025-08-11 14:29:59 +02:00
parent d62f2514e9
commit ce758b1596
2 changed files with 10 additions and 1 deletions

View file

@ -251,6 +251,15 @@ check_last_log_for_error() {
d_textbox "Last Build Error" "$tmp"
rm -f "$tmp"
return 1
elif grep -qi "failed" "$lastlog"; then
local tmp
tmp="$(mktemp)"
echo "Error detected in: $(basename "$lastlog")" > "$tmp"
echo >> "$tmp"
grep -A99999 -i "error" "$lastlog" >> "$tmp"
d_textbox "Last Build Error" "$tmp"
rm -f "$tmp"
return 1
fi
fi
return 0

View file

@ -16,7 +16,7 @@ let
[
(toString nyxCfg.logDir)
(toString nyxCfg.nixDirectory)
"1.1.0"
"1.1.1"
"${pkgs.dialog}/bin/dialog"
]
src;