mirror of
https://github.com/notwa/rc
synced 2024-11-05 02:39:03 -08:00
reduce indentation
This commit is contained in:
parent
d6ca35b4d1
commit
88d6a18653
1 changed files with 41 additions and 41 deletions
10
sh/oxo
10
sh/oxo
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue