mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-03 17:44:49 +02:00
linting: use local scripts to remove sudo need
install linting tools locally to remove the need for sudo curling scripts and installing them for all users
This commit is contained in:
parent
73ca77e7df
commit
9df60f62ce
3 changed files with 22 additions and 10 deletions
|
@ -116,7 +116,7 @@ function _shellcheck
|
|||
{
|
||||
local SCRIPT='SHELLCHECK'
|
||||
local ERR=0
|
||||
local LINT=(/usr/bin/shellcheck -x -S style -Cauto -o all -e SC2154 -W 50)
|
||||
local LINT=(shellcheck -x -S style -Cauto -o all -e SC2154 -W 50)
|
||||
|
||||
if ! __in_path "${LINT[0]}"
|
||||
then
|
||||
|
@ -200,4 +200,8 @@ function _main
|
|||
esac
|
||||
}
|
||||
|
||||
# prefer linters installed in tools
|
||||
PATH="$(pwd)/tools:${PATH}"
|
||||
export PATH
|
||||
|
||||
_main "${@}" || exit ${?}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue