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

debug logs

This commit is contained in:
deadc0de6
2020-10-10 14:10:14 +02:00
parent 00f3766edd
commit a32b1f74c6
2 changed files with 6 additions and 1 deletions

View File

@@ -741,9 +741,14 @@ def main():
LOG.err('interrupted') LOG.err('interrupted')
ret = False ret = False
if o.debug:
LOG.dbg('done executing command')
if ret and o.conf.save(): if ret and o.conf.save():
LOG.log('config file updated') LOG.log('config file updated')
if o.debug:
LOG.dbg('return {}'.format(ret))
return ret return ret

View File

@@ -99,7 +99,7 @@ cd ${ddpath} | ${bin} update -f -c ${cfg} --verbose --profile=p1 --key f_abc
# check files haven't been updated # check files haven't been updated
grep 'b' ${dt}/a/c/acfile >/dev/null grep 'b' ${dt}/a/c/acfile >/dev/null
[ -e ${dt}/a/newfile ] && exit 1 [ -e ${dt}/a/newfile ] && echo "should not have been updated" && exit 1
## CLEANING ## CLEANING
rm -rf ${tmps} ${tmpd} rm -rf ${tmps} ${tmpd}