mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-05 00:59:42 +00:00
fix bug for unknown profile
This commit is contained in:
@@ -72,8 +72,8 @@ def cmd_install(o):
|
||||
"""install dotfiles for this profile"""
|
||||
dotfiles = o.dotfiles
|
||||
prof = o.conf.get_profile(o.profile)
|
||||
pro_pre_actions = prof.get_pre_actions()
|
||||
pro_post_actions = prof.get_post_actions()
|
||||
pro_pre_actions = prof.get_pre_actions() if prof else []
|
||||
pro_post_actions = prof.get_post_actions() if prof else []
|
||||
|
||||
if o.install_keys:
|
||||
# filtered dotfiles to install
|
||||
|
||||
Reference in New Issue
Block a user