Minor patch

This commit is contained in:
Miroslav Stampar 2019-07-16 09:40:59 +02:00
parent 3c4aadf995
commit 6b88fa3a30
2 changed files with 4 additions and 1 deletions

View File

@ -1441,6 +1441,9 @@ def _createHomeDirectories():
Creates directories inside sqlmap's home directory
"""
if conf.purge:
return
for context in "output", "history":
directory = paths["SQLMAP_%s_PATH" % context.upper()]
try:

View File

@ -18,7 +18,7 @@ from lib.core.enums import OS
from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.3.7.23"
VERSION = "1.3.7.24"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)