mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-16 13:26:11 +00:00
fix missing variables
This commit is contained in:
@@ -109,9 +109,11 @@ class Options(AttrMonitor):
|
|||||||
"""constructor
|
"""constructor
|
||||||
@args: argument dictionary (if None use sys)
|
@args: argument dictionary (if None use sys)
|
||||||
"""
|
"""
|
||||||
self.args = args
|
self.args = {}
|
||||||
if not args:
|
if not args:
|
||||||
self.args = docopt(USAGE, version=VERSION)
|
self.args = docopt(USAGE, version=VERSION)
|
||||||
|
if args:
|
||||||
|
self.args = args.copy()
|
||||||
self.log = Logger()
|
self.log = Logger()
|
||||||
self.debug = self.args['--verbose'] or ENV_DEBUG in os.environ
|
self.debug = self.args['--verbose'] or ENV_DEBUG in os.environ
|
||||||
self.dry = self.args['--dry']
|
self.dry = self.args['--dry']
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ _EOF
|
|||||||
|
|
||||||
# create the dotfile
|
# create the dotfile
|
||||||
mkdir -p ${tmps}/dotfiles/d1
|
mkdir -p ${tmps}/dotfiles/d1
|
||||||
echo "{{@@ var1 @@}}" > ${tmps}/dotfiles/d1/empty
|
echo "{#@@ should be stripped @@#}" > ${tmps}/dotfiles/d1/empty
|
||||||
echo "not empty" > ${tmps}/dotfiles/d1/notempty
|
echo "not empty" > ${tmps}/dotfiles/d1/notempty
|
||||||
|
|
||||||
# install
|
# install
|
||||||
|
|||||||
@@ -158,7 +158,6 @@ def load_options(confpath, profile):
|
|||||||
o.import_link = LinkTypes.NOLINK
|
o.import_link = LinkTypes.NOLINK
|
||||||
o.install_showdiff = True
|
o.install_showdiff = True
|
||||||
o.debug = True
|
o.debug = True
|
||||||
o.variables = {}
|
|
||||||
return o
|
return o
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -186,7 +186,6 @@ exec bspwm
|
|||||||
o = load_options(confpath, profile)
|
o = load_options(confpath, profile)
|
||||||
o.safe = False
|
o.safe = False
|
||||||
o.install_showdiff = True
|
o.install_showdiff = True
|
||||||
o.variables = {}
|
|
||||||
cmd_install(o)
|
cmd_install(o)
|
||||||
|
|
||||||
# now compare the generated files
|
# now compare the generated files
|
||||||
|
|||||||
Reference in New Issue
Block a user