m1n1: hook: use exit, not return

This commit is contained in:
dkwo 2025-01-16 11:42:56 +01:00 committed by classabbyamp
parent 5d404d7b68
commit 2dc7f6ed31
2 changed files with 4 additions and 4 deletions

View file

@ -10,8 +10,8 @@ PKGNAME="$1"
VERSION="$2"
[ -e "${ROOTDIR}/etc/default/m1n1-kernel-hook" ] && . "${ROOTDIR}/etc/default/m1n1-kernel-hook"
[ -d "${BOOT}" ] || return 0
[ -d "${M1N1_T}" ] || return 0
[ -d "${BOOT}" ] || exit 0
[ -d "${M1N1_T}" ] || exit 0
m1n1config=/run/m1n1.conf
: >"$m1n1config"
@ -48,7 +48,7 @@ case "$PAYLOAD" in
echo "Payload: m1n1 dtbs uboot config"
;;
*)
echo "Error: unknown PAYLOAD" && return 1
echo "Error: unknown PAYLOAD" && exit 1
;;
esac

View file

@ -1,7 +1,7 @@
# Template file for 'm1n1'
pkgname=m1n1
version=1.4.17
revision=1
revision=2
archs="aarch64*"
hostmakedepends="ImageMagick void-artwork"
short_desc="Asahi Linux bootloader"