Maintenance: Activate ShellCheck also for 'function' files without '.sh' extension.

This commit is contained in:
Martin Gruner 2021-06-21 14:17:53 +02:00
parent 064181815e
commit 341bdd6eb9
2 changed files with 3 additions and 2 deletions

View file

@ -19,7 +19,7 @@ shellcheck:
before_script:
- echo "Disable default before_script."
script:
- shellcheck -S warning $(find . -name "*.sh" | grep -v "/vendor/")
- shellcheck -S warning $(find . -name "*.sh" -o -name "functions" | grep -v "/vendor/")
coffeelint:
<<: *template_pre

View file

@ -50,7 +50,8 @@ function backup_files () {
}
function create_pgpassfile() {
export PGPASSFILE=$(mktemp)
PGPASSFILE=$(mktemp)
export PGPASSFILE
chmod 600 "$PGPASSFILE"
cat <<EOT > "$PGPASSFILE"
*:*:${DB_NAME}:${DB_USER}:${DB_PASS}