mirror of
https://github.com/Foltik/dotfiles
synced 2024-11-23 20:20:53 -05:00
Only import files from trees that exist in the repo
This commit is contained in:
parent
148c83f017
commit
1e212b8fa2
@ -26,7 +26,11 @@ def import_paths(paths, base):
|
||||
if not isinstance(paths, list):
|
||||
paths = [paths]
|
||||
for path in paths:
|
||||
copy(deploy_path(path), path)
|
||||
if path.is_dir():
|
||||
for subpath in path.iterdir():
|
||||
copy(deploy_path(subpath), subpath)
|
||||
else:
|
||||
copy(deploy_path(path), path)
|
||||
|
||||
def export_paths(paths, base):
|
||||
if not isinstance(paths, list):
|
||||
|
Loading…
Reference in New Issue
Block a user