fix: awk script now correctly takes the substring on both mingw and ubuntu

This commit is contained in:
iceman1001 2017-07-28 10:31:24 +02:00
parent 9ca75c1cfd
commit 02983ae6ee

View file

@ -6,7 +6,7 @@ BEGIN {
print "local _keys = {"
}
$1 ~ /^[A-Fa-f0-9]+/ { sub(/\r/, ""); print "'"substr($1,0,12)"'," }
$1 ~ /^[A-Fa-f0-9]+/ { sub(/\r/, ""); print " '"substr($1,1,12)"'," }
END {
print "}"