Commit b09555e8 authored by David Douard's avatar David Douard
Browse files

[cwctl] upgrade: do delete the static data dir if verbosity is 0 (closes #17069749)

--HG--
branch : 3.25
parent b6b87c36beed
......@@ -76,7 +76,7 @@ class GenStaticDataDirMixIn(object):
if not dest:
dest = osp.join(config.appdatahome, 'data')
if osp.exists(dest):
if (not ask_clean or
if config.verbosity and (not ask_clean or
not (config.verbosity and
ASK.confirm('Remove existing data directory %s?' % dest))):
raise ExecutionError('Directory %s already exists. '
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment