From d6b726cc34a84d21ec4fafb6c25bb73c76adfaa9 Mon Sep 17 00:00:00 2001 From: Jools Wills Date: Fri, 30 Dec 2016 21:35:10 +0000 Subject: [PATCH] return es error code --- emulationstation.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emulationstation.sh b/emulationstation.sh index 227078f06..c6915bafd 100755 --- a/emulationstation.sh +++ b/emulationstation.sh @@ -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