aboutsummaryrefslogtreecommitdiff
path: root/tools/Linux/kodi.sh.in
diff options
context:
space:
mode:
authorVasyl Gello <vasek.gello@gmail.com>2022-12-12 15:54:11 +0000
committerVasyl Gello <vasek.gello@gmail.com>2022-12-29 15:25:00 +0200
commitcd719750ce57b0381b8ac56e95571fc5d39c7dc7 (patch)
treeb7487b3ff2999f277389ce3692ba87148654e2d6 /tools/Linux/kodi.sh.in
parent077c7888fc58c05f27f061e306068cacb95843d2 (diff)
Get rid of bashisms in kodi*.sh
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
Diffstat (limited to 'tools/Linux/kodi.sh.in')
-rw-r--r--tools/Linux/kodi.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/Linux/kodi.sh.in b/tools/Linux/kodi.sh.in
index 108c0b007b..11cace29a5 100644
--- a/tools/Linux/kodi.sh.in
+++ b/tools/Linux/kodi.sh.in
@@ -180,10 +180,10 @@ do
CHILD=$!
wait "${CHILD}"
RET=$?
- if [ $(( $RET == 65 )) = "1" ]
+ if [ $RET -eq 65 ]
then # User requested to restart app
LOOP=1
- elif [ $(( ($RET >= 131 && $RET <= 136) || $RET == 139 )) = "1" ]
+ elif [ $RET -ge 131 ] && [ $RET -le 136 ] || [ $RET -eq 139 ]
then # Crashed with core dump
print_crash_report
fi