Skip to content

Commit

Permalink
Quick fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alichtman committed May 13, 2020
1 parent 759ea2c commit 356c085
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ And is incredibly fault tolerant and user-protective.
### Installation
---

**Do not install this as `root`.**

1. Install with [`pip3`](https://pypi.org/project/shallow-backup/)
+ `$ pip3 install shallow-backup`
+ `$ shallow-backup`
Expand Down
4 changes: 1 addition & 3 deletions shallow_backup/reinstall.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
from shlex import quote
from .utils import run_cmd, get_abs_path_subfiles, exit_if_dir_is_empty, run_cmd_return_bool, safe_mkdir, evaluate_condition
from .utils import run_cmd, get_abs_path_subfiles, exit_if_dir_is_empty, safe_mkdir, evaluate_condition
from .printing import *
from .compatibility import *
from .config import get_config
Expand All @@ -23,8 +23,6 @@ def reinstall_dots_sb(dots_path: str, home_path: str = os.path.expanduser("~")):
config = get_config()["dotfiles"]

dotfiles_to_reinstall = []
# TODO: Extract this method to a utils file and refactor this block and
# the similar block in backup_dotfiles()
for dotfile_path_from_config, options in config.items():
# Evaluate condition, if specified. Skip if the command doesn't return true.
condition_success = evaluate_condition(condition=options["reinstall_condition"],
Expand Down

0 comments on commit 356c085

Please sign in to comment.