From 678cac507284167e76cc678f928ca906d6654bca Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Wed, 6 Apr 2022 19:02:09 +0100 Subject: [PATCH] Set shellcheck options: -s sh -S warning -x Signed-off-by: Richard T Bonhomme --- op-test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/op-test.sh b/op-test.sh index cb93f280c..4750a54e6 100644 --- a/op-test.sh +++ b/op-test.sh @@ -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