summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2020-03-11 16:33:27 +1100
committerMartin Schwenke <martins@samba.org>2020-07-22 07:53:35 +0000
commit29a3fce28f380e3b5c2e44a697fbf35be2a139da (patch)
tree42e39e49f207f1895b0a441f570ac900611048f2
parent1565446508fcf2bdd1ae9c39cc3822417cd91dc8 (diff)
downloadsamba-29a3fce28f380e3b5c2e44a697fbf35be2a139da.tar.gz
ctdb-tests: Redirect stderr too when checking for shellcheck
Avoid: .../UNIT/shellcheck/scripts/local.sh: line 14: type: shellcheck: not found The "type" command in dash prints the "not found" message to stdout but the bash version prints to stderr, so redirect stderr too. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
-rw-r--r--ctdb/tests/UNIT/shellcheck/scripts/local.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tests/UNIT/shellcheck/scripts/local.sh b/ctdb/tests/UNIT/shellcheck/scripts/local.sh
index 6bc93fd9146..c069314b0aa 100644
--- a/ctdb/tests/UNIT/shellcheck/scripts/local.sh
+++ b/ctdb/tests/UNIT/shellcheck/scripts/local.sh
@@ -11,7 +11,7 @@ define_test ()
shellcheck_test ()
{
ok_null
- if type shellcheck >/dev/null ; then
+ if type shellcheck >/dev/null 2>&1 ; then
# Skip some recent checks:
#
# SC1090: Can't follow non-constant source. Use a