Blame SOURCES/get-text-journal-size.patch

e965a0
diff -u b/src/journal.sh b/src/journal.sh
e965a0
--- b/src/journal.sh
e965a0
+++ b/src/journal.sh
e965a0
@@ -531,7 +531,7 @@
e965a0
 rljAddPhase(){
e965a0
     __INTERNAL_PersistentDataLoad
e965a0
     local MSG=${2:-"Phase of $1 type"}
e965a0
-    local TXTLOG_START=$(wc -l $__INTERNAL_BEAKERLIB_JOURNAL_TXT)
e965a0
+    local TXTLOG_START=$(cat $__INTERNAL_BEAKERLIB_JOURNAL_TXT | wc -l)
e965a0
     rlLogDebug "rljAddPhase: Phase $MSG started"
e965a0
     __INTERNAL_WriteToMetafile phase --name "$MSG" --type "$1" >&2
e965a0
     # Printing
e965a0
@@ -546,7 +546,7 @@
e965a0
       __INTERNAL_PHASE_FAILED=( 0 )
e965a0
       __INTERNAL_PHASE_PASSED=( 0 )
e965a0
       __INTERNAL_PHASE_STARTTIME=( $__INTERNAL_TIMESTAMP )
e965a0
-      __INTERNAL_PHASE_TXTLOG_START=( $(wc -l $__INTERNAL_BEAKERLIB_JOURNAL_TXT) )
e965a0
+      __INTERNAL_PHASE_TXTLOG_START=( $TXTLOG_START )
e965a0
       __INTERNAL_PHASE_OPEN=${#__INTERNAL_PHASE_NAME[@]}
e965a0
       __INTERNAL_PHASE_METRICS=( "" )
e965a0
     else