mirror of
https://github.com/cisagov/log4j-affected-db.git
synced 2024-11-22 08:30:48 +00:00
Apply changes from the shfmt pre-commit hook
This commit is contained in:
parent
406b6880bd
commit
2b48e75b23
1 changed files with 8 additions and 6 deletions
14
setup-env
14
setup-env
|
@ -4,7 +4,8 @@ set -o nounset
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
USAGE=$(cat << 'END_OF_LINE'
|
USAGE=$(
|
||||||
|
cat << 'END_OF_LINE'
|
||||||
Configure a developement environment for this repository.
|
Configure a developement environment for this repository.
|
||||||
|
|
||||||
It does the following:
|
It does the following:
|
||||||
|
@ -35,17 +36,17 @@ FORCE=0
|
||||||
PARAMS=""
|
PARAMS=""
|
||||||
|
|
||||||
# Parse command line arguments
|
# Parse command line arguments
|
||||||
while (( "$#" )); do
|
while (("$#")); do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-f|--force)
|
-f | --force)
|
||||||
FORCE=1
|
FORCE=1
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-h|--help)
|
-h | --help)
|
||||||
echo "${USAGE}"
|
echo "${USAGE}"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
-i|--install-hooks)
|
-i | --install-hooks)
|
||||||
INSTALL_HOOKS=1
|
INSTALL_HOOKS=1
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
@ -160,7 +161,8 @@ pre-commit install ${INSTALL_HOOKS:+"--install-hooks"}
|
||||||
# This could fail if the remotes are already setup, but that is ok.
|
# This could fail if the remotes are already setup, but that is ok.
|
||||||
set +o errexit
|
set +o errexit
|
||||||
|
|
||||||
eval "$(python3 << 'END_OF_LINE'
|
eval "$(
|
||||||
|
python3 << 'END_OF_LINE'
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import yaml
|
import yaml
|
||||||
import sys
|
import sys
|
||||||
|
|
Loading…
Reference in a new issue