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:
Andreas Perhab 2021-02-23 11:03:14 +01:00
parent 73ca77e7df
commit 9df60f62ce
3 changed files with 22 additions and 10 deletions

View file

@ -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 ${?}