Merge pull request #8104 from chewitt/canupdate

amlogic: fix canupdate.sh script
This commit is contained in:
CvH 2023-09-04 19:52:29 +02:00 committed by GitHub
commit 04d320b01d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,9 +12,8 @@ case $(uname -r) in
;;
esac
# allow upgrades between aarch64 and arm images
PROJECT=$("$1" | cut -d. -f1)
if [ "$1" = "${PROJECT}.aarch64" -o "$1" = "${PROJECT}.arm" ]; then
# Allow upgrades between arm and aarch64
if [ "${1}" = "@PROJECT@.arm" -o "${1}" = "@PROJECT@.aarch64" ]; then
exit 0
else
exit 1