add shfmt

This commit is contained in:
Aminda Suomalainen 2023-05-18 11:58:51 +03:00
parent 687a6433bb
commit 8fb52ec8f2
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
4 changed files with 42 additions and 37 deletions

View File

@ -80,6 +80,13 @@ repos:
# - id: black
#- id: black-jupyter
# Shell code formatter, requires Go
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.6.0-2
hooks:
- id: shfmt
#- id: shfmt-docker
# .editorconfig validity checking
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: "2.7.1"

View File

@ -41,13 +41,11 @@ if hash pre-commit 2>/dev/null; then
pre-commit gc
fi
if [ -f $HOME/.MIKAELAGREP ]
then
if [ -f $HOME/.MIKAELAGREP ]; then
mv $HOME/.MIKAELAGREP $MIKAELA_GREP
fi
if [ -f "$MIKAELA_GREP" ]
then
if [ -f "$MIKAELA_GREP" ]; then
bash -x .mikaela_install
fi