mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2026-04-04 22:18:58 +00:00
fix version check script
This commit is contained in:
parent
006b29d177
commit
6839db20ca
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ version = None
|
|||
with open("src/LoRa_APRS_iGate.cpp") as f:
|
||||
for line in f:
|
||||
if line.startswith("#define VERSION"):
|
||||
version = line.strip().split(" ")[2].replace('"', "")
|
||||
version = line.strip().split(" ")[-1].replace('"', "")
|
||||
|
||||
version_split = version.split(".")
|
||||
version_year = int(version_split[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue