Skip to content

Commit

Permalink
Optionally check shell syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Oct 15, 2020
1 parent eee00b3 commit 1b27612
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/libyui/shellcheck.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -e
set -u

if ! type -P shellcheck >/dev/null; then
echo "SKIP https://www.shellcheck.net/ is not installed"
exit 0
fi

MYDIR=$(dirname "$0")
FILES=("$MYDIR"/*.test "$MYDIR"/tmux-uitest.sh)
shellcheck --wiki-link-count=99 "${FILES[@]}"

0 comments on commit 1b27612

Please sign in to comment.