Fix all Shellcheck SC2004 violations.

pull/143/head
Ben Peachey 3 years ago committed by Joseph Werle
parent dd4bfbd678
commit f55825365e

@ -77,12 +77,12 @@ suggest () {
## get total
count="${#found[@]}"
if (( ${count} == 1 )); then
if (( count == 1 )); then
echo "${found[0]}"
elif (( ${count} > 0 )); then
printf "suggest: found %d result(s)\n" ${count}
elif (( count > 0 )); then
printf "suggest: found %d result(s)\n" "${count}"
echo
for (( i = 0; i < ${count}; ++i )); do
for (( i = 0; i < count; ++i )); do
printf "%d %s\n" $(echo -n ${found[$i]} | wc -c | tr -d ' ') "${found[$i]}"
done | sort -n | awk '{ print $2 }' | xargs printf ' %s\n'
else

@ -53,8 +53,8 @@ term_move () {
fi
## set state
(( _x = ${x} ))
(( _y = ${y} ))
(( _x = x ))
(( _y = y ))
## write
printf "\e[%d;%d;f" ${y} ${x}
@ -68,8 +68,8 @@ term_transition () {
return 1
fi
(( x = ${x} + ${_x} ))
(( y = ${y} + ${_y} ))
(( x = x + _x ))
(( y = y + _y ))
term move "${x}" "${y}"
return 0

Loading…
Cancel
Save