mirror of
https://github.com/notwa/rc
synced 2024-11-05 02:49:02 -08:00
print total files in oxo's epilogue to reduce confusion
This commit is contained in:
parent
a3dc131383
commit
0d7c321363
1 changed files with 2 additions and 2 deletions
4
sh/oxo
4
sh/oxo
|
@ -101,13 +101,13 @@ oxo() { ### @-
|
||||||
|
|
||||||
if [ $hits -gt 0 ]; then
|
if [ $hits -gt 0 ]; then
|
||||||
[ $hits -eq 1 ] && s= || s=s
|
[ $hits -eq 1 ] && s= || s=s
|
||||||
printf "$look" "oxo: successfully uploaded $hits file$s" >&2
|
printf "$look" "oxo: successfully uploaded $hits/$total file$s" >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local fails=$((total-hits))
|
local fails=$((total-hits))
|
||||||
if [ $fails -gt 0 ]; then
|
if [ $fails -gt 0 ]; then
|
||||||
[ $fails -eq 1 ] && s= || s=s
|
[ $fails -eq 1 ] && s= || s=s
|
||||||
printf "$err" "oxo: failed to upload $fails file$s" >&2
|
printf "$err" "oxo: failed to upload $fails/$total file$s" >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ ! -e /tmp/oxo ] || rm /tmp/oxo
|
[ ! -e /tmp/oxo ] || rm /tmp/oxo
|
||||||
|
|
Loading…
Reference in a new issue