mirror of https://github.com/CIRCL/AIL-framework
fix: [Updater] don't check if modified config files (redis and ardb config)
parent
010a73e273
commit
0137893882
|
@ -37,9 +37,19 @@ def check_if_files_modified():
|
||||||
if process.returncode == 0:
|
if process.returncode == 0:
|
||||||
modified_files = process.stdout
|
modified_files = process.stdout
|
||||||
if modified_files:
|
if modified_files:
|
||||||
print('Modified Files:')
|
l_modified_files = []
|
||||||
print('{}{}{}'.format(TERMINAL_BLUE, modified_files.decode(), TERMINAL_DEFAULT))
|
for modified_file in modified_files.decode().split('\n'):
|
||||||
return False
|
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:
|
else:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue