fix: [Updater] don't check if modified config files (redis and ardb config)

This commit is contained in:
Terrtia 2021-04-09 16:17:12 +02:00
parent 010a73e273
commit 0137893882
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -37,9 +37,19 @@ def check_if_files_modified():
if process.returncode == 0:
modified_files = process.stdout
if modified_files:
print('Modified Files:')
print('{}{}{}'.format(TERMINAL_BLUE, modified_files.decode(), TERMINAL_DEFAULT))
return False
l_modified_files = []
for modified_file in modified_files.decode().split('\n'):
if modified_file:
if modified_file.split('/')[0] != 'configs':
l_modified_files.append(modified_file)
if l_modified_files:
print('Modified Files:')
for modified_file in l_modified_files:
print('{}{}{}'.format(TERMINAL_BLUE, modified_file, TERMINAL_DEFAULT))
print()
return False
else:
return True
else:
return True
else: