From c96e8ca9d79e9fc75359272f30921cbdb2bbaf13 Mon Sep 17 00:00:00 2001 From: epoch Date: Sat, 28 Mar 2020 04:09:57 -0500 Subject: makelabel was using %d which choked on floating point numbers --- bin/makelabel.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/makelabel.sh b/bin/makelabel.sh index 24bb750..1f8a68a 100755 --- a/bin/makelabel.sh +++ b/bin/makelabel.sh @@ -23,12 +23,12 @@ while read -rN 1 c;do name="$(printf "%02x" "'$c")" if [ "$name" = "0a" ]; then xoffset=-6 - yoffset="$(printf '%d - %d\n' $yoffset 10 | bc)" + yoffset="$(printf '%s - %s\n' $yoffset 10 | bc)" fi if grep "^$name " "${dirdir0}/share/hackvr/font/default.hackvr" 2>&1 > /dev/null;then #don't do this shit unless we actually have something to draw. awk in offsetshape bitches when there's nothing. grep "^$name " "${dirdir0}/share/hackvr/font/default.hackvr" \ | sed 's/^'"$name"'/'"$target"'/' \ | offsetshape.sh "$xoffset" "$yoffset" "$zoffset" fi - xoffset="$(printf '%d + %d\n' $xoffset 6 | bc)" + xoffset="$(printf '%s + %s\n' $xoffset 6 | bc)" done -- cgit v1.2.3