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

View file

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