mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-22 16:40:48 +00:00
Merge pull request #67 from cisagov/improvement/add_beautysh_pre-commit_hook
Add the beautysh pre-commit hook
This commit is contained in:
commit
09744fad25
2 changed files with 14 additions and 7 deletions
|
@ -48,6 +48,13 @@ repos:
|
||||||
- --strict
|
- --strict
|
||||||
|
|
||||||
# Shell script hooks
|
# Shell script hooks
|
||||||
|
- repo: https://github.com/lovesegfault/beautysh
|
||||||
|
rev: 6.0.1
|
||||||
|
hooks:
|
||||||
|
- id: beautysh
|
||||||
|
args:
|
||||||
|
- --indent-size
|
||||||
|
- '2'
|
||||||
- repo: https://github.com/detailyang/pre-commit-shell
|
- repo: https://github.com/detailyang/pre-commit-shell
|
||||||
rev: 1.0.5
|
rev: 1.0.5
|
||||||
hooks:
|
hooks:
|
||||||
|
|
14
setup-env
14
setup-env
|
@ -50,14 +50,14 @@ while (( "$#" )); do
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-*) # unsupported flags
|
-*) # unsupported flags
|
||||||
echo "Error: Unsupported flag $1" >&2
|
echo "Error: Unsupported flag $1" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
*) # preserve positional arguments
|
*) # preserve positional arguments
|
||||||
PARAMS="$PARAMS $1"
|
PARAMS="$PARAMS $1"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# set positional arguments in their proper place
|
# set positional arguments in their proper place
|
||||||
|
|
Loading…
Reference in a new issue