cmake add nuttx shellcheck helper

This commit is contained in:
Daniel Agar
2018-08-25 20:12:29 +02:00
committed by Lorenz Meier
parent 096c41b041
commit 52e1b59e60
4 changed files with 24 additions and 3 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ if [ "$PX4_SIM_MODEL" = "shell" ]; then
set RUN_MINIMAL_SHELL yes
else
# Find the matching Autostart ID (file name has the form: [0-9]+_${PX4_SIM_MODEL})
# shellcheck disable=SC2012 #(the file names don't contain spaces)
# TODO: unify with rc.autostart generation
# shellcheck disable=SC2012
REQUESTED_AUTOSTART=$(ls "$SCRIPT_DIR" | sed -n 's/^\([0-9][0-9]*\)_'${PX4_SIM_MODEL}'$/\1/p')
if [ -z "$REQUESTED_AUTOSTART" ]; then
echo "Error: Unknown model '$PX4_SIM_MODEL'"