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 esac
# allow upgrades between aarch64 and arm images # Allow upgrades between arm and aarch64
PROJECT=$("$1" | cut -d. -f1) if [ "${1}" = "@PROJECT@.arm" -o "${1}" = "@PROJECT@.aarch64" ]; then
if [ "$1" = "${PROJECT}.aarch64" -o "$1" = "${PROJECT}.arm" ]; then
exit 0 exit 0
else else
exit 1 exit 1