Skip to content

Commit

Permalink
m1n1: hook: use exit, not return
Browse files Browse the repository at this point in the history
  • Loading branch information
dkwo authored and classabbyamp committed Jan 16, 2025
1 parent 5d404d7 commit 2dc7f6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions srcpkgs/m1n1/files/kernel.d/m1n1.post-install
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/m1n1/template
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 2dc7f6e

Please sign in to comment.