Disable SC2001 shellcheck in docker/test/fuzzer/run-fuzzer.sh

This commit is contained in:
Vladimir C 2021-08-30 16:22:36 +03:00 committed by vdimir
parent 887ac96a19
commit 4cbc1aba19
No known key found for this signature in database
GPG Key ID: F57B3E10A21DBB31

View File

@ -1,5 +1,5 @@
#!/bin/bash
# shellcheck disable=SC2086
# shellcheck disable=SC2086,SC2001
set -eux
set -o pipefail
@ -76,6 +76,9 @@ function filter_exists_and_template
local path
for path in "$@"; do
if [ -e "$path" ]; then
# SC2001 shellcheck suggests:
# echo ${path//.sql.j2/.gen.sql}
# but it doesn't allow to use regex
echo "$path" | sed 's/\.sql\.j2$/.gen.sql/'
else
echo "'$path' does not exists" >&2