Skip to content

Commit

Permalink
Install shellcheck to /opt in Docker image
Browse files Browse the repository at this point in the history
Avoid conflicts with 'test installation' from shellcheck.bats since /opt
is not in $PATH
  • Loading branch information
pylipp committed Feb 9, 2020
1 parent 5311eeb commit a4a4919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ repos:
hooks:
- id: shellcheck
name: shellcheck
entry: pylipp/sdd:latest shellcheck -x
entry: pylipp/sdd:latest /opt/shellcheck -x
language: docker_image
types: [shell]
2 changes: 1 addition & 1 deletion test/setup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN package=shellcheck-v0.7.0 && \
wget -P /tmp https://shellcheck.storage.googleapis.com/$archive && \
cd /tmp && \
tar xf $archive && \
mv $package/shellcheck /usr/local/bin && \
mv $package/shellcheck /opt && \
rm -rf $archive $package

ENV PATH=/root/.local/bin:/opt/sdd/bin:$PATH
Expand Down

0 comments on commit a4a4919

Please sign in to comment.