diff options
| author | epoch <epoch@hacking.allowed.org> | 2020-03-28 04:09:57 -0500 | 
|---|---|---|
| committer | epoch <epoch@hacking.allowed.org> | 2020-03-28 04:09:57 -0500 | 
| commit | c96e8ca9d79e9fc75359272f30921cbdb2bbaf13 (patch) | |
| tree | 10d1c855880e1e39bbce3c836f42b2534a265005 | |
| parent | 7dd38f1219b4dd473807aa4c4f779919853997b4 (diff) | |
| download | hackvr-c96e8ca9d79e9fc75359272f30921cbdb2bbaf13.tar.gz hackvr-c96e8ca9d79e9fc75359272f30921cbdb2bbaf13.zip | |
makelabel was using %d which choked on floating point numbers
| -rwxr-xr-x | bin/makelabel.sh | 4 | 
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 | 
