return es error code

This commit is contained in:
Jools Wills 2016-12-30 21:35:10 +00:00
parent 56971d54a5
commit d6b726cc34

View file

@ -4,6 +4,7 @@ esdir="$(dirname $0)"
while true; do
rm -f /tmp/es-restart /tmp/es-sysrestart /tmp/es-shutdown
"$esdir/emulationstation" "$@"
ret=$?
[ -f /tmp/es-restart ] && continue
if [ -f /tmp/es-sysrestart ]; then
rm -f /tmp/es-sysrestart
@ -17,3 +18,4 @@ while true; do
fi
break
done
exit $ret