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

Skip to content

Commit 5ced273

Browse files
committed
Minor cleanup
1 parent 7d807bf commit 5ced273

4 files changed

Lines changed: 1 addition & 511 deletions

File tree

extra/shutils/precommit-hook.sh

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

1313
PROJECT="../../"
1414
SETTINGS="../../lib/core/settings.py"
15-
CHECKSUM="../../txt/checksum.md5"
1615

1716
declare -x SCRIPTPATH="${0}"
1817

1918
PROJECT_FULLPATH=${SCRIPTPATH%/*}/$PROJECT
2019
SETTINGS_FULLPATH=${SCRIPTPATH%/*}/$SETTINGS
21-
CHECKSUM_FULLPATH=${SCRIPTPATH%/*}/$CHECKSUM
2220

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

@@ -37,6 +35,3 @@ then
3735
fi
3836
git add "$SETTINGS_FULLPATH"
3937
fi
40-
41-
truncate -s 0 "$CHECKSUM_FULLPATH"
42-
cd $PROJECT_FULLPATH && for i in $(find . -name "*.py" -o -name "*.xml" -o -name "*_" -o -type f -regex "./[^./]*" | sort); do git ls-files $i --error-unmatch &>/dev/null && md5sum $i | stdbuf -i0 -o0 -e0 sed 's/\.\///' >> "$CHECKSUM_FULLPATH"; git add "$CHECKSUM_FULLPATH"; done

extra/shutils/pypi.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ Links
177177
EOF
178178
sed -i "s/^VERSION =.*/VERSION = \"$VERSION\"/g" sqlmap/lib/core/settings.py
179179
sed -i "s/^TYPE =.*/TYPE = \"$TYPE\"/g" sqlmap/lib/core/settings.py
180-
sed -i "s/.*lib\/core\/settings\.py/`md5sum sqlmap/lib/core/settings.py | cut -d ' ' -f 1` lib\/core\/settings\.py/g" sqlmap/txt/checksum.md5
181180
for file in $(find sqlmap -type f | grep -v -E "\.(git|yml)"); do echo include $file >> MANIFEST.in; done
182181
python setup.py sdist upload
183182
rm -rf $TMP_DIR

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.3.3.42"
22+
VERSION = "1.3.3.43"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
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)