Set shellcheck options: -s sh -S warning -x

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-04-06 19:02:09 +01:00
parent dfe8e6ffad
commit 678cac5072
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -24,8 +24,8 @@ if [ "$enable_shellcheck" ]; then
if [ -e "shellcheck" ] && [ "$EASYRSA_NIX" ]; then
chmod +x shellcheck
./shellcheck -V
if [ -e easyrsa3/easyrsa ];then
./shellcheck easyrsa3/easyrsa
if [ -e easyrsa3/easyrsa ]; then
./shellcheck -s sh -S warning -x easyrsa3/easyrsa
else
echo "* easyrsa binary not present, using path, no shellcheck"
fi
@ -35,8 +35,8 @@ elif [ "$EASYRSA_NIX" ]; then
[ -e "shellcheck" ] || { echo "shellcheck download failed."; exit 9; }
chmod +x shellcheck
./shellcheck -V
if [ -e easyrsa3/easyrsa ];then
./shellcheck easyrsa3/easyrsa
if [ -e easyrsa3/easyrsa ]; then
./shellcheck -s sh -S warning -x easyrsa3/easyrsa
else
echo "* easyrsa binary not present, using path, no shellcheck"
fi