Skip to content

Commit 000bf75

Browse files
committed
Strip leading zeros again to not confuse bash
This version number is checked and incremented in bash which gets trippy with octal system on leading zeros xd
1 parent 2e486c6 commit 000bf75

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

BlmapChill/print_map_details_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# usage: python print_map_details_version.py BlmapChill.map
66
#
7-
# expected sample output: 0184
7+
# expected sample output: 184
88
#
99

1010
from os.path import isfile
@@ -21,4 +21,4 @@
2121
print(f"Mapfile not found '{map_path}'", file=sys.stderr)
2222
exit(1)
2323
m = twmap.Map(map_path)
24-
print(m.info.version)
24+
print(str(int(m.info.version)))

BlmapChill/print_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77
# usage: python print_version.py BlmapChill.map
88
#
9-
# expected sample output: 0184
9+
# expected sample output: 184
1010
#
1111

1212
from os.path import isfile
@@ -40,4 +40,4 @@
4040
else:
4141
version_str += str(digit - 29)
4242

43-
print(version_str)
43+
print(str(int(version_str)))

0 commit comments

Comments
 (0)