Ver-1.2.1

---
use less to show logs
~ Credit to: rtunreal
This commit is contained in:
user 2025-08-13 13:38:08 +02:00
parent 5bb532cd87
commit 8cb680311d
2 changed files with 2 additions and 3 deletions

View file

@ -226,8 +226,7 @@ action_view_logs() {
tmp="$(mktemp)"
lastlog="$(find "$log_dir" -type f -name '*.log' -printf '%T@ %p\n' 2>/dev/null | sort -nr | awk 'NR==1{print $2}')"
if [[ -n "${lastlog:-}" && -f "$lastlog" ]]; then
tail -n 300 "$lastlog" > "$tmp"
d_textbox "Last Rebuild Log: $(basename "$lastlog")" "$tmp"
less <"$lastlog"
else
d_msg "No logs found in ${log_dir}"
fi

View file

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