From af8bcd446d1a220901193ee646b0529d8361dd81 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 15 Mar 2020 02:42:30 +0000 Subject: [PATCH] Use plurar or singular form --- bitbar/brew-cask-upgrades.1h.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bitbar/brew-cask-upgrades.1h.sh b/bitbar/brew-cask-upgrades.1h.sh index 0761b2d..b5f64b1 100755 --- a/bitbar/brew-cask-upgrades.1h.sh +++ b/bitbar/brew-cask-upgrades.1h.sh @@ -33,7 +33,11 @@ main() { echo ":tropical_drink:↑${count} | dropdown=false" echo '---' - echo "$count outdated casks" + if [ "$count" == "1" ]; then + echo "$count outdated cask" + else + echo "$count outdated casks" + fi if [ "$count" -gt 0 ]; then echo 'Upgrade all casks | terminal=true refresh=true' \