Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conditional backup and reinstallation #272

Merged
merged 18 commits into from
May 13, 2020
Merged

Add conditional backup and reinstallation #272

merged 18 commits into from
May 13, 2020

Conversation

alichtman
Copy link
Owner

No description provided.

@alichtman alichtman force-pushed the redo_config branch 3 times, most recently from 942ae56 to 3c7e4af Compare May 13, 2020 02:33
@alichtman
Copy link
Owner Author

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 1
           

Complexity increasing per file
==============================
- shallow_backup/config.py  5
         

Complexity decreasing per file
==============================
+ shallow_backup/upgrade.py  -7
         

See the complete overview on Codacy


def run_cmd_return_bool(command: str) -> bool:
"""Run a bash command and return True if the exit code is 0, False otherwise"""
return os.system(f"/bin/bash -c '{command}'") == 0
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alichtman alichtman merged commit d28e4e5 into master May 13, 2020
@alichtman alichtman deleted the redo_config branch May 13, 2020 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant