diff --git a/cmd/updater/update.sh b/cmd/updater/update.sh index cc4403ffd1..94a4b2ba26 100755 --- a/cmd/updater/update.sh +++ b/cmd/updater/update.sh @@ -334,7 +334,7 @@ function check_for_updater() { function check_for_update() { determine_current_version check_for_updater - LATEST="$(${SCRIPTPATH}/updater ver check -c ${CHANNEL} ${BUCKET} | sed -n '2 p')" + LATEST="$(${SCRIPTPATH}/updater ver check -c ${CHANNEL} ${BUCKET} | tail -1)" if [ $? -ne 0 ]; then echo "No remote updates found" return 1