mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
rcS: fix exit value
Shellcheck complained about returning -1 because that's essentially 255.
This commit is contained in:
parent
3ebf030a02
commit
63ee101c51
@ -45,7 +45,7 @@ else
|
||||
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'"
|
||||
exit -1
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -174,7 +174,7 @@ do
|
||||
done
|
||||
if [ ! -e "$autostart_file" ]; then
|
||||
echo "Error: no autostart file found ($autostart_file)"
|
||||
exit -1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
sh "$autostart_file"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user