Set script version-lookup path to match docker structure.
This commit is contained in:
parent
5afd750c76
commit
13a5bccc00
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ from datetime import datetime
|
||||||
|
|
||||||
# Pull script version from previous
|
# Pull script version from previous
|
||||||
VERSION = '0.0.0'
|
VERSION = '0.0.0'
|
||||||
with open(os.path.join(os.pardir, "ARLChecker"), "r") as r:
|
with open("./custom-services.d/ARLChecker", "r") as r:
|
||||||
for line in r:
|
for line in r:
|
||||||
if 'scriptVersion' in line:
|
if 'scriptVersion' in line:
|
||||||
VERSION = re.search(r'"([A-Za-z0-9_\./\\-]*)"', line)[0].replace('"','')
|
VERSION = re.search(r'"([A-Za-z0-9_\./\\-]*)"', line)[0].replace('"','')
|
||||||
|
|
Loading…
Reference in a new issue