File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -400,7 +400,10 @@ function DisplayTorProxyConfig() {}
400400 if ($ date !== "" )
401401 $ message .= " ( $ date) " ;
402402 } else {
403- $ message .= " ( $ count occurrences, last on $ date) " ;
403+ $ message .= " ( $ count occurrences " ;
404+ if ($ date !== "" )
405+ $ message .= ", last on $ date " ;
406+ $ message .= ") " ;
404407 }
405408 } else {
406409 $ level = "error " ; // badly formed message
Original file line number Diff line number Diff line change 165165if [[ -f ${ALLSKY_MESSAGES} ]] && M=" $( grep " ${TAB}${ESCAPED_MESSAGE}${TAB} " " ${ALLSKY_MESSAGES} " ) " ; then
166166 COUNT=0
167167 # tail -1 in case file is corrupt and has more than one line we want.
168- PRIOR_COUNT=$( echo -e " ${M} " | cut -f3 -d" ${TAB} " | tail -1 )
168+ PRIOR_COUNT=$( echo -e " ${M} " | cut -f5 -d" ${TAB} " | tail -1 )
169169
170170 # If this entry is corrupted don't try to update the counter.
171171 [[ ${PRIOR_COUNT} != " " ]] && (( COUNT = PRIOR_COUNT + 1 ))
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ if [[ ${CURRENT_VERSION} == "${NEWEST_VERSION}" ]]; then
3737elif [[ ${CURRENT_VERSION} < " ${NEWEST_VERSION} " ]]; then
3838 RET=" ${EXIT_PARTIAL_OK} "
3939else
40- RET=0 # Current newer than newest - this should not happen in normal use
40+ # Current newer than newest - this can happen if testing a newer release.
41+ RET=0
4142fi
4243
4344echo " ${NEWEST_VERSION} "
You can’t perform that action at this time.
0 commit comments