shellcheck: disable SC2181

The combination of 'if mycmd' and a logical expression is not supported in
NuttX.
This commit is contained in:
Beat Küng
2019-07-09 18:45:18 +02:00
parent d95aae4619
commit 84bca7e4d0
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -260,6 +260,7 @@ if(SHELLCHECK_PATH)
--exclude=SC2166 # SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
--exclude=SC2154 # SC2154: <var> is referenced but not assigned (NuttX uses different asssignment)
--exclude=SC2164 # SC2164: Use 'cd ... || exit' or 'cd ... || return' in case cd fails.
--exclude=SC2181 # SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
`find ${romfs_gen_root_dir}/init.d -type f`
DEPENDS ${romfs_gen_root_dir}/init.d/rc.autostart
WORKING_DIRECTORY ${romfs_gen_root_dir}