Merge pull request #20 from AuxXxilium/dev

arc-a: fix update
This commit is contained in:
Christian 2024-03-29 13:04:15 +01:00 committed by GitHub
commit 91fae4bfe8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -98,9 +98,11 @@ function updateMenu() {
--infobox "Error checking new Version!\nUse current Version." 0 0
sleep 5
arcModel
exit 0
fi
if [ "${ACTUALVERSION}" = "${TAG}" ]; then
arcModel
exit 0
fi
dialog --backtitle "$(backtitle)" --title "Upgrade Loader" --aspect 18 \
--infobox "Downloading ${TAG}" 0 0
@ -111,6 +113,7 @@ function updateMenu() {
--infobox "Error downloading Updatefile!\nUse current Version." 0 0
sleep 5
arcModel
exit 0
fi
unzip -oq "${TMP_PATH}/arc-c-${TAG}.img.zip" -d "${TMP_PATH}"
rm -f "${TMP_PATH}/arc-c-${TAG}.img.zip"
@ -119,6 +122,7 @@ function updateMenu() {
--infobox "Error extracting Updatefile!\nUse current Version." 0 0
sleep 5
arcModel
exit 0
fi
dialog --backtitle "$(backtitle)" --title "Upgrade Loader" --aspect 18 \
--infobox "Installing new Loader Image" 0 0