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"; \ fileName="screens/install-try$try-$x.png"; \
import -window root "$fileName"; \ import -window root "$fileName"; \
tiv -w 10000 -h 10000 "$fileName"; \ tiv -w 10000 -h 10000 "$fileName"; \
x=$(bash -c "declare -i x=$x+1; echo "'$x'); \ x="$(expr "$x" + 1)"; \
echo $x; \ echo $x; \
sleep 1; \ sleep 1; \
done; \ done; \
@ -151,7 +151,7 @@ RUN \
do \ do \
echo "Restarting Installation"; \ echo "Restarting Installation"; \
# Increase counter # Increase counter
y=$(bash -c "declare -i y=$y+1; echo "'$y'); \ y="$(expr "$y" + 1)"; \
done && \ done && \
kill -9 "$displayPID" > /dev/null 2>&1; \ kill -9 "$displayPID" > /dev/null 2>&1; \
# Delete unfinished installations # Delete unfinished installations