diff options
-rwxr-xr-x | src/usr/local/sbin/pfSense-upgrade | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade index cebc012..28bce31 100755 --- a/src/usr/local/sbin/pfSense-upgrade +++ b/src/usr/local/sbin/pfSense-upgrade @@ -145,6 +145,11 @@ pkg_upgrade_first_step() { pkg_update force fi + if [ $(pkg upgrade -nq | wc -l) -le 1 ]; then + _echo "Your packages are up to date" + _exit 0 + fi + kernel_version_compare=$(compare_pkg_version ${kernel_pkg}) if [ "${kernel_version_compare}" = "<" ]; then @@ -162,11 +167,6 @@ pkg_upgrade_first_step() { _exit 1 fi - if [ $(pkg upgrade -nq | wc -l) -le 1 ]; then - _echo "Your packages are up to date" - _exit 0 - fi - if [ -z "${yes}" ]; then # Show user which packages are going to be upgraded pkg upgrade -nq 2>&1 | tee -a ${logfile} |