1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 00:39:02 -08:00

print total files in oxo's epilogue to reduce confusion

This commit is contained in:
Connor Olding 2021-09-24 19:59:09 -07:00
parent a3dc131383
commit 0d7c321363

4
sh/oxo
View file

@ -101,13 +101,13 @@ oxo() { ### @-
if [ $hits -gt 0 ]; then
[ $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
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
printf "$err" "oxo: failed to upload $fails/$total file$s" >&2
fi
[ ! -e /tmp/oxo ] || rm /tmp/oxo