mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-26 15:57:16 +00:00
fix: [Updater] don't check if modified config files (redis and ardb config)
This commit is contained in:
parent
010a73e273
commit
0137893882
1 changed files with 13 additions and 3 deletions
|
@ -37,11 +37,21 @@ def check_if_files_modified():
|
|||
if process.returncode == 0:
|
||||
modified_files = process.stdout
|
||||
if modified_files:
|
||||
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:')
|
||||
print('{}{}{}'.format(TERMINAL_BLUE, modified_files.decode(), TERMINAL_DEFAULT))
|
||||
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:
|
||||
print('{}{}{}'.format(TERMINAL_RED, process.stderr.decode(), TERMINAL_DEFAULT))
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in a new issue