From 384148c019415e0a19917c6ff19d03a9158dfc62 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 25 Mar 2023 13:40:33 +0100 Subject: [PATCH] Simplify math expressions --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ddb7789..41a23d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -100,7 +100,7 @@ RUN \ fileName="screens/install-try$try-$x.png"; \ import -window root "$fileName"; \ tiv -w 10000 -h 10000 "$fileName"; \ - x=$(bash -c "declare -i x=$x+1; echo "'$x'); \ + x="$(expr "$x" + 1)"; \ echo $x; \ sleep 1; \ done; \ @@ -151,7 +151,7 @@ RUN \ do \ echo "Restarting Installation"; \ # Increase counter - y=$(bash -c "declare -i y=$y+1; echo "'$y'); \ + y="$(expr "$y" + 1)"; \ done && \ kill -9 "$displayPID" > /dev/null 2>&1; \ # Delete unfinished installations