rcS: fix exit value

Shellcheck complained about returning -1 because that's essentially 255.
This commit is contained in:
Julian Oes 2018-12-18 09:27:12 +01:00 committed by Nuno Marques
parent 3ebf030a02
commit 63ee101c51

View File

@ -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"