(fix) fix the extra empty line printed
This commit is contained in:
parent
b4c9cb55d2
commit
098f3a0962
2
brick.sh
2
brick.sh
|
@ -85,8 +85,10 @@ print_long_list() {
|
||||||
for el in ${list[@]}; do
|
for el in ${list[@]}; do
|
||||||
printf '%s ' $el
|
printf '%s ' $el
|
||||||
if [ "$i" == "2" ]; then
|
if [ "$i" == "2" ]; then
|
||||||
|
if ! [ "$(( "${#list[@]}" % 3 ))" == "0" ]; then
|
||||||
printf '\n%s' "$(inf)$(inf)"
|
printf '\n%s' "$(inf)$(inf)"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
i=$(( i + 1 ))
|
i=$(( i + 1 ))
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in New Issue