aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-03-28 04:09:57 -0500
committerepoch <epoch@hacking.allowed.org>2020-03-28 04:09:57 -0500
commitc96e8ca9d79e9fc75359272f30921cbdb2bbaf13 (patch)
tree10d1c855880e1e39bbce3c836f42b2534a265005 /bin
parent7dd38f1219b4dd473807aa4c4f779919853997b4 (diff)
downloadhackvr-c96e8ca9d79e9fc75359272f30921cbdb2bbaf13.tar.gz
hackvr-c96e8ca9d79e9fc75359272f30921cbdb2bbaf13.zip
makelabel was using %d which choked on floating point numbers
Diffstat (limited to 'bin')
-rwxr-xr-xbin/makelabel.sh4
1 files changed, 2 insertions, 2 deletions
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