Merge pull request #67 from cisagov/improvement/add_beautysh_pre-commit_hook

Add the beautysh pre-commit hook
pull/113/head
Nick M 3 years ago committed by GitHub
commit 09744fad25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      .pre-commit-config.yaml
  2. 14
      setup-env

@ -48,6 +48,13 @@ repos:
- --strict
# 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
rev: 1.0.5
hooks:

@ -50,14 +50,14 @@ while (( "$#" )); do
shift
;;
-*) # unsupported flags
echo "Error: Unsupported flag $1" >&2
exit 1
;;
echo "Error: Unsupported flag $1" >&2
exit 1
;;
*) # preserve positional arguments
PARAMS="$PARAMS $1"
shift
;;
esac
PARAMS="$PARAMS $1"
shift
;;
esac
done
# set positional arguments in their proper place

Loading…
Cancel
Save