mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-24 16:01:53 +08:00
rcS: fix exit value
Shellcheck complained about returning -1 because that's essentially 255.
This commit is contained in:
1 parent
3ebf030a02
commit
63ee101c51
1 file changed
+2
-2
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user