mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-14 23:25:06 +00:00
fix bug #256
This commit is contained in:
@@ -1258,6 +1258,9 @@ class CfgYaml:
|
|||||||
"""recursively delete all none/empty values in a dictionary."""
|
"""recursively delete all none/empty values in a dictionary."""
|
||||||
new = {}
|
new = {}
|
||||||
for k, v in dic.items():
|
for k, v in dic.items():
|
||||||
|
if k == self.key_dotfiles and v:
|
||||||
|
new[k] = v
|
||||||
|
continue
|
||||||
newv = v
|
newv = v
|
||||||
if isinstance(v, dict):
|
if isinstance(v, dict):
|
||||||
newv = self._clear_none(v)
|
newv = self._clear_none(v)
|
||||||
|
|||||||
@@ -93,11 +93,18 @@ profiles:
|
|||||||
_EOF
|
_EOF
|
||||||
|
|
||||||
echo "[+] import"
|
echo "[+] import"
|
||||||
#cd ${ddpath} | ${bin} install -c ${cfg} -p p1 --verbose | grep '^5 dotfile(s) installed.$'
|
|
||||||
cd ${ddpath} | ${bin} import -c ${cfg} -p p1 --verbose ${dftoimport}
|
cd ${ddpath} | ${bin} import -c ${cfg} -p p1 --verbose ${dftoimport}
|
||||||
[ "$?" != "0" ] && exit 1
|
[ "$?" != "0" ] && exit 1
|
||||||
|
|
||||||
cat ${cfg}
|
echo "[+] install"
|
||||||
|
cd ${ddpath} | ${bin} install -c ${cfg} -p p1 --verbose | grep '^5 dotfile(s) installed.$'
|
||||||
|
rm -f ${dftoimport}
|
||||||
|
cd ${ddpath} | ${bin} install -c ${cfg} -p p1 --verbose | grep '^6 dotfile(s) installed.$'
|
||||||
|
|
||||||
|
nb=`cd ${ddpath} | ${bin} files -c ${cfg} -p p1 --verbose | grep '^[a-zA-Z]' | wc -l`
|
||||||
|
[ "${nb}" != "6" ] && echo 'error in dotfile list' && exit 1
|
||||||
|
|
||||||
|
#cat ${cfg}
|
||||||
|
|
||||||
## CLEANING
|
## CLEANING
|
||||||
rm -rf ${basedir} ${tmpd}
|
rm -rf ${basedir} ${tmpd}
|
||||||
|
|||||||
Reference in New Issue
Block a user