Skip to content

Commit

Permalink
Set shellcheck options: -s sh -S warning -x
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Apr 6, 2022
1 parent dfe8e6f commit 678cac5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions op-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

1 comment on commit 678cac5

@TinCanTech
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.