move spellcheck to pre commit part 2

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-07-12 18:36:14 +02:00
parent 0d3778fae0
commit 905410f93d
2 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#### $$VERSION$$ v0.99-dev2-7-ge1084a8 #### $$VERSION$$ v0.99-dev2-8-g0d3778f
############ ############
# NOTE: you MUST run install-hooks.sh again when updating this file! # NOTE: you MUST run install-hooks.sh again when updating this file!
@ -22,8 +22,7 @@ unset IFS; set -f
# check for shellcheck # check for shellcheck
if command -v shellcheck >/dev/null 2>&1; then if command -v shellcheck >/dev/null 2>&1; then
echo "Test all scripts with shellcheck ..." echo "Test all scripts with shellcheck"
echo "............................"
else else
echo "Error: shellcheck is not installed. Please install shellcheck" echo "Error: shellcheck is not installed. Please install shellcheck"
exit 1 exit 1
@ -38,6 +37,7 @@ if [ "$FILES" != "" ]; then
# shellcheck disable=SC2086 # shellcheck disable=SC2086
shellcheck -x ${FILES} || exit 1 shellcheck -x ${FILES} || exit 1
echo " OK" echo " OK"
echo "............................"
else else
# something went wrong # something went wrong
exit 1 exit 1
@ -49,7 +49,6 @@ VERSION="$(git describe --tags | sed -e 's/-.*//' -e 's/v//' -e 's/,/./')"
# LOCAL version must greater than latest REMOTE release version # LOCAL version must greater than latest REMOTE release version
echo "Update Version of modified files" echo "Update Version of modified files"
echo "............................"
if (( $(echo "${VERSION} >= ${REMOTEVER}" | bc -l) )); then if (( $(echo "${VERSION} >= ${REMOTEVER}" | bc -l) )); then
# update version in bashbot files on push # update version in bashbot files on push
set +f set +f

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#### $$VERSION$$ v0.99-dev2-7-ge1084a8 #### $$VERSION$$ v0.99-dev2-8-g0d3778f
############ ############
# NOTE: you MUST run install-hooks.sh again when updating this file! # NOTE: you MUST run install-hooks.sh again when updating this file!