(fix) fix the extra empty line printed
This commit is contained in:
parent
b4c9cb55d2
commit
098f3a0962
4
brick.sh
4
brick.sh
|
@ -85,7 +85,9 @@ 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
|
||||||
printf '\n%s' "$(inf)$(inf)"
|
if ! [ "$(( "${#list[@]}" % 3 ))" == "0" ]; then
|
||||||
|
printf '\n%s' "$(inf)$(inf)"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
i=$(( i + 1 ))
|
i=$(( i + 1 ))
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue