From 433adb51218737ae85ce754995c2181654d7b968 Mon Sep 17 00:00:00 2001 From: zawz Date: Fri, 21 Aug 2020 11:31:28 +0200 Subject: [PATCH] sysupdate: optimize --- zupdate/sysupdate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zupdate/sysupdate b/zupdate/sysupdate index e835e5d..5059bc0 100755 --- a/zupdate/sysupdate +++ b/zupdate/sysupdate @@ -60,9 +60,9 @@ fi #fetch updates -size=$(zupdate -Mkd) || fetch_error - -packages=$(zupdate -L | cut -d' ' -f1) || fetch_error +all=$(zupdate -MkdL) || fetch_error +size=$(echo "$all" | head -n1) +packages=$(echo "$all" | cut -d' ' -f1 | tail -n+2) if [ -z "$packages" ] then