This commit is contained in:
Kroese 2023-04-17 19:54:28 +02:00 committed by GitHub
parent 95ed911025
commit 5cba72b97b

View File

@ -45,7 +45,7 @@ function downloadUpdate {
local_size=$(stat -c%s "$SCRIPT") local_size=$(stat -c%s "$SCRIPT")
[ "$remote_size" == "$local_size" ] && return [ "$remote_size" == "$local_size" ] && return
if ! curl -sfk -m 10 -o "${TMP}" "${URL}"; then if ! curl -sfk -m 10 -o "${TMP}" "${URL}"; then
echo "$HEADER: curl error" && return echo "$HEADER: curl error" && return
fi fi
@ -68,7 +68,7 @@ function downloadUpdate {
chmod +x "${SCRIPT}" chmod +x "${SCRIPT}"
echo "$HEADER: succesfully installed update, please reboot." echo "$HEADER: succesfully installed update, please reboot."
} }
function installPackages { function installPackages {
@ -109,13 +109,13 @@ for filename in /usr/local/packages/*.spk; do
done done
if [ "$first_run" = true ]; then if [ "$first_run" = true ]; then
installPackages installPackages
else else
downloadUpdate downloadUpdate
fi fi
delay=5000 delay=5000
@ -140,4 +140,3 @@ while true; do
sleep 2 sleep 2
done done
.