Skip to content

Commit bbc3c4a

Browse files
authored
Merge pull request #2339 from jbampton/pre-commit-add-shellcheck
pre-commit: add `shellcheck` and clean shell files
2 parents 7c87506 + 0f8995f commit bbc3c4a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,9 @@ repos:
8383
name: run oxipng
8484
description: check PNG files with oxipng
8585
args: ['--fix', '-o', '4', '--strip', 'safe', '--alpha']
86+
- repo: https://github.com/shellcheck-py/shellcheck-py
87+
rev: v0.11.0.1
88+
hooks:
89+
- id: shellcheck
90+
name: run shellcheck
91+
description: check Shell scripts with shellcheck

integration-tests/support/src/main/resources/createKeyStore.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ set -e
3030
# programmatically: `System.setProperty("javax.net.ssl.trustStore", "/path/to/keystore")`
3131

3232
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
33+
# shellcheck disable=SC2034
3334
keystore_file="${dir}/test-keystore.jks"
3435
file_prefix="${dir}/test-keystore"
35-
rm -f ${file_prefix}*
36+
rm -f "${file_prefix}"*
3637

3738
echo "generate new keystore"
3839
keytool -genkey \

0 commit comments

Comments
 (0)