Skip to content

Commit

Permalink
Merge pull request #67 from cisagov/improvement/add_beautysh_pre-comm…
Browse files Browse the repository at this point in the history
…it_hook

Add the beautysh pre-commit hook
  • Loading branch information
mcdonnnj authored Feb 16, 2021
2 parents 3313850 + c025046 commit 09744fa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 7 additions & 7 deletions setup-env
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09744fa

Please sign in to comment.