mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 15:28:12 +02:00
Keep logs during deploy cleanup
This commit is contained in:
5
main.py
5
main.py
@@ -123,7 +123,10 @@ if __name__ == "__main__":
|
||||
# Parse flags
|
||||
sound_enabled = '--sound' in sys.argv and (sys.argv.remove('--sound') or True)
|
||||
no_signal = '--no-signal' in sys.argv and (sys.argv.remove('--no-signal') or True)
|
||||
log_enabled = '--log' in sys.argv and (sys.argv.remove('--log') or True)
|
||||
# Guaranty that --log is passed to deploy command
|
||||
log_enabled = '--log' in sys.argv
|
||||
if log_enabled and (len(sys.argv) < 2 or sys.argv[1] != 'deploy'):
|
||||
sys.argv.remove('--log')
|
||||
git_clean = '--git-clean' in sys.argv and (sys.argv.remove('--git-clean') or True)
|
||||
infinite = '--infinite' in sys.argv and (sys.argv.remove('--infinite') or True)
|
||||
alarm_timeout = 60
|
||||
|
Reference in New Issue
Block a user