Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 626b310

Browse files
committed
Adding support for sha256sum of source files
1 parent 76a2e65 commit 626b310

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

extra/shutils/precommit-hook.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ chmod +x .git/hooks/pre-commit
1212

1313
PROJECT="../../"
1414
SETTINGS="../../lib/core/settings.py"
15+
DIGEST="../../sha256sums.txt"
1516

1617
declare -x SCRIPTPATH="${0}"
1718

1819
PROJECT_FULLPATH=${SCRIPTPATH%/*}/$PROJECT
1920
SETTINGS_FULLPATH=${SCRIPTPATH%/*}/$SETTINGS
21+
DIGEST_FULLPATH=${SCRIPTPATH%/*}/$DIGEST
2022

2123
git diff $SETTINGS_FULLPATH | grep "VERSION =" > /dev/null && exit 0
2224

@@ -35,3 +37,5 @@ then
3537
fi
3638
git add "$SETTINGS_FULLPATH"
3739
fi
40+
41+
cd $PROJECT_FULLPATH && git ls-files | sort | uniq | grep -v sha256 | xargs sha256sum > $DIGEST_FULLPATH

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.8.2.1"
23+
VERSION = "1.8.3.0"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)