1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-12 07:53:22 -07:00

remove conditional colors on success message

This commit is contained in:
Connor Olding 2021-09-16 22:52:30 -07:00
parent 99b2991838
commit dde18c8e48

6
sh/oxo
View File

@ -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