Simplify math expressions

This commit is contained in:
Manuel Thalmann 2023-03-25 13:40:33 +01:00
parent e66425895b
commit 384148c019

View file

@ -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