From a2b7e259b5875b1e53705db463f999c63d73355d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20K=C3=B6llmann?= Date: Mon, 18 Nov 2019 20:58:02 +0100 Subject: [PATCH] apt-upgrades: Respect SYMBOL_ONLY when there are no updates as well Fixes [#281] --- apt-upgrades/apt-upgrades | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apt-upgrades/apt-upgrades b/apt-upgrades/apt-upgrades index 58829b62..ea2b95e2 100755 --- a/apt-upgrades/apt-upgrades +++ b/apt-upgrades/apt-upgrades @@ -57,8 +57,13 @@ if [[ $upgraded != 0 ]] || [[ $new != 0 ]] || [[ $removed != 0 ]] || [[ $held != echo $color elif [[ $ALWAYS_PRINT == 1 ]]; then color="$NONPENDING_COLOR" - echo -e "$PENDING_SYMBOL$upgraded/$new/$removed/$held" - echo -e "$PENDING_SYMBOL$upgraded/$new/$removed/$held" + if [[ $SYMBOL_ONLY == 1 ]]; then + echo -e "$PENDING_SYMBOL" + echo -e "$PENDING_SYMBOL" + else + echo -e "$PENDING_SYMBOL$upgraded/$new/$removed/$held" + echo -e "$PENDING_SYMBOL$upgraded/$new/$removed/$held" + fi echo $color fi