Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Update .pre-commit-config.yaml (#300)

MustkimKhatik30f357d5cf7f
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e3bb46cf6..075366628 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -70,3 +70,8 @@ repos:
files: ^js/.*$
- id: prettier
types: [yaml]
+
+ - repo: https://github.com/koalaman/shellcheck-precommit
+ rev: v0.8.0
+ hooks:
+ - id: shellcheck
diff --git a/load_testing/api.sh b/load_testing/api.sh
index 65cc21f30..066874ad7 100755
--- a/load_testing/api.sh
+++ b/load_testing/api.sh
@@ -2,7 +2,8 @@
set -e
-source ./.env.sh || (echo 'Please create a `.env.sh` file based on the `.env.sh.template` file.' > /dev/stderr && false)
+# shellcheck source=/dev/null
+source ./.env.sh || (echo "Please create a $(.env.sh) file based on the $(.env.sh.template) file." > /dev/stderr && false)
host=$1