v1.4 - Python script shows correct version
This commit is contained in:
parent
fd9ddddbb5
commit
d477614c52
2 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
### Default values
|
### Default values
|
||||||
scriptVersion="1.4.0"
|
scriptVersion="1.4"
|
||||||
scriptName="ARLChecker"
|
scriptName="ARLChecker"
|
||||||
sleepInterval='24h'
|
sleepInterval='24h'
|
||||||
### Import Settings
|
### Import Settings
|
||||||
|
|
|
@ -11,8 +11,7 @@ import logging
|
||||||
import os
|
import os
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
# Pull script version from previous
|
# Pull script version from bash script. will likely change this to a var passthrough
|
||||||
VERSION = '0.0.0'
|
|
||||||
with open("/custom-services.d/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:
|
||||||
|
|
Loading…
Reference in a new issue