summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-08-11 08:55:33 -0300
committerRenato Botelho <renato@netgate.com>2017-08-11 08:55:52 -0300
commit474b3a2f48f48facb36cf8a39a7e51ab0a90342e (patch)
tree665ca8f561cae7f208ef08c64893a33b2bc196d9
parent71d0b5f8ffd1af85aea26d9cc8177f45d904ffac (diff)
downloadpfsense-474b3a2f48f48facb36cf8a39a7e51ab0a90342e.zip
pfsense-474b3a2f48f48facb36cf8a39a7e51ab0a90342e.tar.gz
Consider only last output line
-rwxr-xr-xsrc/etc/rc.update_pkg_metadata2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/rc.update_pkg_metadata b/src/etc/rc.update_pkg_metadata
index a0fcd48..518b00e 100755
--- a/src/etc/rc.update_pkg_metadata
+++ b/src/etc/rc.update_pkg_metadata
@@ -32,7 +32,7 @@ tmp_version=$(mktemp -q /tmp/${product}_version.XXXXXXXX) \
sleep $sleep_time \
&& /usr/local/sbin/${product}-upgrade -uf \
&& ( \
- /usr/local/sbin/${product}-upgrade -Uc > $tmp_version \
+ /usr/local/sbin/${product}-upgrade -Uc | tail -n 1 > $tmp_version \
; rc=$? \
; echo $rc > ${tmp_version}.rc \
; test $rc -eq 2 && return 0 || return $rc \
OpenPOWER on IntegriCloud