Skip to content

Commit

Permalink
Add dev/easyrsa-tools.lib to unit-test as a shellcheck target
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 4, 2024
1 parent 0a93ddf commit 3e81a57
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions op-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,17 @@ run_shellcheck () {
log "easyrsa binary not present, not using shellcheck"
fi

# shell-check dev/easyrsa-tools.lib
if [ -e dev/easyrsa-tools.lib ]; then
if "${sc_bin}" -s sh -S warning -x dev/easyrsa-tools.lib; then
log "shellcheck dev/easyrsa-tools.lib completed - ok"
else
log "shellcheck dev/easyrsa-tools.lib completed - FAILED"
fi
else
log "dev/easyrsa-tools.lib not present, not using shellcheck"
fi

# shell-check easyrsa-unit-tests.sh
if [ -e easyrsa-unit-tests.sh ]; then
if "${sc_bin}" -s sh -S warning -x easyrsa-unit-tests.sh; then
Expand Down

0 comments on commit 3e81a57

Please sign in to comment.