mirror of
https://github.com/notwa/rc
synced 2024-11-05 00:29:02 -08:00
remove conditional colors on success message
This commit is contained in:
parent
99b2991838
commit
dde18c8e48
1 changed files with 2 additions and 4 deletions
6
sh/oxo
6
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
|
||||
|
|
Loading…
Reference in a new issue