mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
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>
This commit is contained in:
parent
c78de201f8
commit
847aa0e367
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user