Skip to content

Commit

Permalink
Fix for use with PORT_LOGDIR (thanks to Malte Starostik)
Browse files Browse the repository at this point in the history
Otherwise main build log is ignored, as it is a symlink in this case.
Bump version to 1.0.3.
  • Loading branch information
sakaki- committed Aug 10, 2017
1 parent accf9c3 commit fd96b15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions showem
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set -u

# ********************** variables *********************
PROGNAME="$(basename "${0}")"
VERSION="1.0.2"
VERSION="1.0.3"
PORTAGE_BUILD_DIR="$(portageq envvar PORTAGE_TMPDIR)/portage"
MAIN_LOG_DIR="/var/log"
EMERGE_FETCH_LOG="emerge-fetch.log"
Expand Down Expand Up @@ -175,7 +175,7 @@ main_monitor_loop() {
LINES_USED=5 # minimum even when no content to print
# find single most recent log file in /var/tmp/portage, if any
if [ -d "${PORTAGE_BUILD_DIR}" ]; then
CURRENT_LOG=$(find "${PORTAGE_BUILD_DIR}" -name '*.log' -type f \
CURRENT_LOG=$(find "${PORTAGE_BUILD_DIR}" -name '*.log' \( -type f -or -type l \) \
-printf '%T@ "%p"\n' | sort -nr | head -1 | cut -d'"' -f2)
else
CURRENT_LOG=""
Expand Down
2 changes: 1 addition & 1 deletion showem.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH SHOWEM 1 "Version 1.0.2: August 2017"
.TH SHOWEM 1 "Version 1.0.3: August 2017"
.SH NAME
showem \- monitor the progress of a parallel \fBemerge\fR(1)
.SH SYNOPSIS
Expand Down

0 comments on commit fd96b15

Please sign in to comment.