From 2a7ef58c9ffcfc477b8a1764e3ea95e18d6763eb Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 2 Aug 2016 11:55:11 +0200 Subject: [PATCH] Minor refactoring --- extra/shutils/precommit-hook | 2 +- lib/core/settings.py | 2 +- txt/checksum.md5 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extra/shutils/precommit-hook b/extra/shutils/precommit-hook index faa2fb105..e7b21a1e0 100644 --- a/extra/shutils/precommit-hook +++ b/extra/shutils/precommit-hook @@ -17,7 +17,7 @@ then INCREMENTED=$(python -c "import re, sys, time; version = re.search('\"([0-9.]*)\"', sys.argv[1]).group(1); _ = version.split('.'); _.append(0) if len(_) < 3 else _; _[-1] = str(int(_[-1]) + 1); month = str(time.gmtime().tm_mon); _[-1] = '0' if _[-2] != month else _[-1]; _[-2] = month; print sys.argv[1].replace(version, '.'.join(_))" "$LINE") if [ -n "$INCREMENTED" ] then - sed "s/${LINE}/${INCREMENTED}/" $SETTINGS_FULLPATH > $SETTINGS_FULLPATH.tmp && mv $SETTINGS_FULLPATH.tmp $SETTINGS_FULLPATH + sed -i "s/${LINE}/${INCREMENTED}/" $SETTINGS_FULLPATH echo "Updated ${INCREMENTED} in ${SETTINGS_FULLPATH}"; else echo "Something went wrong in VERSION increment" diff --git a/lib/core/settings.py b/lib/core/settings.py index 9d82d00e9..8539effaa 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.8.8" +VERSION = "1.0.8.9" REVISION = getRevisionNumber() TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} diff --git a/txt/checksum.md5 b/txt/checksum.md5 index ad4d2bfd8..696deb524 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py 5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py 99a2b496b9d5b546b335653ca801153f lib/core/revision.py 7c15dd2777af4dac2c89cab6df17462e lib/core/session.py -e9ab1f38b3653ca51519b62929b52492 lib/core/settings.py +e173318a21fabbaa36abaec12ebbcb15 lib/core/settings.py 7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py 23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py 0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py