Ver-1.2.1
--- use less to show logs ~ Credit to: rtunreal
This commit is contained in:
parent
5bb532cd87
commit
8cb680311d
2 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ let
|
|||
[
|
||||
(toString nyxCfg.logDir)
|
||||
(toString nyxCfg.nixDirectory)
|
||||
"1.2.0"
|
||||
"1.2.1"
|
||||
"${pkgs.dialog}/bin/dialog"
|
||||
]
|
||||
src;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue