Skip to content

Commit

Permalink
Nicer backup_or_reinstall conditional printing
Browse files Browse the repository at this point in the history
  • Loading branch information
alichtman committed May 21, 2024
1 parent 5329545 commit 5093ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shallow_backup/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ def evaluate_condition(
)
condition_success = run_cmd_return_bool(condition)
if not condition_success:
print_blue(f"SKIPPING {backup_or_reinstall.lower()} based on <{condition}>")
print_blue(f"SKIPPING {backup_or_reinstall.lower()} b/c this is false: $ {condition}")
return False
else:
print_blue(
f"NOT skipping {backup_or_reinstall.lower()} based on <{condition}>"
f"NOT skipping {backup_or_reinstall.lower()} b/c this is true: $ {condition}"
)
return True
else:
Expand Down

0 comments on commit 5093ca7

Please sign in to comment.