mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 13:23:24 -07:00
Strip branch and version when reading text file in Windows updater
This commit is contained in:
parent
7019f5618b
commit
dea51e32a5
1 changed files with 2 additions and 2 deletions
|
@ -60,11 +60,11 @@ def update_tautulli():
|
||||||
logger.info('Starting Tautulli update check')
|
logger.info('Starting Tautulli update check')
|
||||||
|
|
||||||
with open(os.path.join(SCRIPT_PATH, 'branch.txt'), 'r') as f:
|
with open(os.path.join(SCRIPT_PATH, 'branch.txt'), 'r') as f:
|
||||||
branch = f.read()
|
branch = f.read().strip(' \n\r')
|
||||||
logger.info('Branch: %s', branch)
|
logger.info('Branch: %s', branch)
|
||||||
|
|
||||||
with open(os.path.join(SCRIPT_PATH, 'version.txt'), 'r') as f:
|
with open(os.path.join(SCRIPT_PATH, 'version.txt'), 'r') as f:
|
||||||
current_version = f.read()
|
current_version = f.read().strip(' \n\r')
|
||||||
logger.info('Current version: %s', current_version)
|
logger.info('Current version: %s', current_version)
|
||||||
|
|
||||||
logger.info('Retrieving latest version from GitHub')
|
logger.info('Retrieving latest version from GitHub')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue