Skip to content

Commit

Permalink
test: run shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
q0rban committed Oct 1, 2024
1 parent 08b4d55 commit 7d79779
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 'Shellcheck'
on:
- push
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@203a3fd018dfe73f8ae7e3aa8da2c149a5f41c33
env:
SHELLCHECK_OPTS: --external-sources --exclude=SC1091
with:
severity: warning
additional_files: 'run finish'
1 change: 1 addition & 0 deletions scripts/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ for tags in $($GETTAGS "${FILTER}"); do
cp -r "${dir}/files" "${imgdir}/"
fi

# shellcheck disable=SC2002
cat "templates/Dockerfile.${TEMPLATE}.template" | \
sed "s|{{FROM}}|${image}|g" | \
sed "/{{DOCKERFILE}}/ r ${dockerfile}" | \
Expand Down
2 changes: 1 addition & 1 deletion services/solr/finish
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

/opt/solr/bin/solr stop -p ${SOLR_PORT:-8983}
/opt/solr/bin/solr stop -p "${SOLR_PORT:-8983}"

0 comments on commit 7d79779

Please sign in to comment.