From dde18c8e48eafd2604396971cb9bdd9e6737083a Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Thu, 16 Sep 2021 22:52:30 -0700 Subject: [PATCH] remove conditional colors on success message --- sh/oxo | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sh/oxo b/sh/oxo index 6226898..b75486e 100755 --- a/sh/oxo +++ b/sh/oxo @@ -99,14 +99,12 @@ oxo() { ### @- fi done - local fails=$((total-hits)) - if [ $hits -gt 0 ]; then - [ $fails -eq 0 ] && fmt="$look" || fmt="$warn" [ $hits -eq 1 ] && s= || s=s - printf "$fmt" "oxo: successfully uploaded $hits file$s" >&2 + printf "$look" "oxo: successfully uploaded $hits file$s" >&2 fi + local fails=$((total-hits)) if [ $fails -gt 0 ]; then [ $fails -eq 1 ] && s= || s=s printf "$err" "oxo: failed to upload $fails file$s" >&2