~gpanders/pushbroom

87ec0e6caad8145d57bbe2c8d3fa5b09767e9bd5 — Greg Anders 1 year, 11 months ago 8a9f1a1
Coerce the Shred option into a boolean
1 files changed, 1 insertions(+), 1 deletions(-)

M src/pushbroom/console.py
M src/pushbroom/console.py => src/pushbroom/console.py +1 -1
@@ 36,7 36,7 @@ def pushbroom(config, dry_run=False):
            ignore_re = re.compile("|".join([fnmatch.translate(x) for x in ignore]))
            match = config.get(section, "match", fallback="*").split(",")
            match_re = re.compile("|".join([fnmatch.translate(x) for x in match]))
            shred = config.get(section, "shred", fallback=False)
            shred = config.getboolean(section, "shred", fallback=False)

            if trash:
                if shred: