mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
rc.autostart restart shellcheck fix (161cf7) and exclude check
- fixes #10972
This commit is contained in:
committed by
Lorenz Meier
parent
5083c60a87
commit
38c84e6e9d
@@ -196,6 +196,7 @@ if(SHELLCHECK_PATH)
|
|||||||
--exclude=SC2086 # SC2086: Double quote to prevent globbing and word splitting.
|
--exclude=SC2086 # SC2086: Double quote to prevent globbing and word splitting.
|
||||||
--exclude=SC2166 # SC2166: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
|
--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=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.
|
||||||
`find ${romfs_gen_root_dir}/init.d -type f`
|
`find ${romfs_gen_root_dir}/init.d -type f`
|
||||||
DEPENDS ${romfs_gen_root_dir}/init.d/rc.autostart
|
DEPENDS ${romfs_gen_root_dir}/init.d/rc.autostart
|
||||||
WORKING_DIRECTORY ${romfs_gen_root_dir}
|
WORKING_DIRECTORY ${romfs_gen_root_dir}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class RCOutput():
|
|||||||
"# 14000 .. 14999 Tri Y\n"
|
"# 14000 .. 14999 Tri Y\n"
|
||||||
""
|
""
|
||||||
""
|
""
|
||||||
"cd /etc/init.d/airframes || return\n"
|
"cd /etc/init.d/airframes\n"
|
||||||
"\n")
|
"\n")
|
||||||
for group in groups:
|
for group in groups:
|
||||||
result += "# GROUP: %s\n\n" % group.GetName()
|
result += "# GROUP: %s\n\n" % group.GetName()
|
||||||
|
|||||||
Reference in New Issue
Block a user