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

reduce indentation

This commit is contained in:
Connor Olding 2021-09-16 13:35:44 -07:00
parent d6ca35b4d1
commit 88d6a18653

10
sh/oxo
View file

@ -49,17 +49,18 @@ oxo() { ### @-
elif [ $# -gt 255 ]; then
printf "$err" "oxo: too many arguments (max: 255)" >&2
return 255
else
fi
for f; do
if [ ! -e "$f" ]; then
: $((fails+=1))
printf "$bad" "oxo: no such file: $f" >&2
: $((fails+=1))
elif [ -d "$f" ]; then
: $((fails+=1))
printf "$bad" "oxo: skipping directory: $f" >&2
: $((fails+=1))
elif [ ! -s "$f" ]; then
printf "$bad" "oxo: skipping empty file: $f" >&2
: $((fails+=1))
printf "$bad" "oxo: skipping empty file: $f" >&2
else
local kib="$(du -k "$f" | cut -f1)"
@ -90,7 +91,6 @@ oxo() { ### @-
#rm -f /tmp/0x0
fi
done
fi
if [ $succs -gt 0 ]; then
[ $fails -eq 0 ] && fmt="$look" || fmt="$warn"