Revision 4e1a3d15
Added by Renato Botelho almost 8 years ago
src/etc/rc.update_pkg_metadata | ||
---|---|---|
32 | 32 |
sleep $sleep_time \ |
33 | 33 |
&& /usr/local/sbin/${product}-upgrade -uf \ |
34 | 34 |
&& ( \ |
35 |
/usr/local/sbin/${product}-upgrade -Uc | tail -n 1 > $tmp_version \
|
|
35 |
/usr/local/sbin/${product}-upgrade -Uc > ${tmp_version}.tmp \
|
|
36 | 36 |
; rc=$? \ |
37 |
; tail -n 1 ${tmp_version}.tmp > $tmp_version \ |
|
38 |
; rm -f ${tmp_version}.tmp \ |
|
37 | 39 |
; echo $rc > ${tmp_version}.rc \ |
38 | 40 |
; test $rc -eq 2 && return 0 || return $rc \ |
39 | 41 |
) \ |
Also available in: Unified diff
Make sure pfSense-upgrade return code is obtained instead of tail's one