1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-06 14:17:59 +00:00

ensure only one trans_r and one trans_w

This commit is contained in:
deadc0de6
2019-06-02 11:43:20 +02:00
parent a90995d427
commit 44ed1a4d1f
2 changed files with 9 additions and 4 deletions

View File

@@ -42,7 +42,11 @@ class Dotfile(DictParser):
self.noempty = noempty
self.src = src
self.trans_r = trans_r
if trans_r and len(self.trans_r) > 1:
raise Exception('only one trans_read allowed')
self.trans_w = trans_w
if trans_w and len(self.trans_w) > 1:
raise Exception('only one trans_write allowed')
self.upignore = upignore
def get_dotfile_variables(self):