From 23d96b6a5667c6db1c1876b99841161f8478729a Mon Sep 17 00:00:00 2001 From: Jools Wills Date: Wed, 20 Apr 2016 23:22:10 +0100 Subject: [PATCH] allow emulationstation.sh to be called from any location (gets basename from $0) --- emulationstation.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emulationstation.sh b/emulationstation.sh index cc48aed67..227078f06 100755 --- a/emulationstation.sh +++ b/emulationstation.sh @@ -1,8 +1,9 @@ #!/bin/sh +esdir="$(dirname $0)" while true; do rm -f /tmp/es-restart /tmp/es-sysrestart /tmp/es-shutdown - ./emulationstation "$@" + "$esdir/emulationstation" "$@" [ -f /tmp/es-restart ] && continue if [ -f /tmp/es-sysrestart ]; then rm -f /tmp/es-sysrestart