mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
m1n1: hook: use exit, not return
This commit is contained in:
parent
5d404d7b68
commit
2dc7f6ed31
2 changed files with 4 additions and 4 deletions
|
@ -10,8 +10,8 @@ PKGNAME="$1"
|
||||||
VERSION="$2"
|
VERSION="$2"
|
||||||
|
|
||||||
[ -e "${ROOTDIR}/etc/default/m1n1-kernel-hook" ] && . "${ROOTDIR}/etc/default/m1n1-kernel-hook"
|
[ -e "${ROOTDIR}/etc/default/m1n1-kernel-hook" ] && . "${ROOTDIR}/etc/default/m1n1-kernel-hook"
|
||||||
[ -d "${BOOT}" ] || return 0
|
[ -d "${BOOT}" ] || exit 0
|
||||||
[ -d "${M1N1_T}" ] || return 0
|
[ -d "${M1N1_T}" ] || exit 0
|
||||||
|
|
||||||
m1n1config=/run/m1n1.conf
|
m1n1config=/run/m1n1.conf
|
||||||
: >"$m1n1config"
|
: >"$m1n1config"
|
||||||
|
@ -48,7 +48,7 @@ case "$PAYLOAD" in
|
||||||
echo "Payload: m1n1 dtbs uboot config"
|
echo "Payload: m1n1 dtbs uboot config"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Error: unknown PAYLOAD" && return 1
|
echo "Error: unknown PAYLOAD" && exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'm1n1'
|
# Template file for 'm1n1'
|
||||||
pkgname=m1n1
|
pkgname=m1n1
|
||||||
version=1.4.17
|
version=1.4.17
|
||||||
revision=1
|
revision=2
|
||||||
archs="aarch64*"
|
archs="aarch64*"
|
||||||
hostmakedepends="ImageMagick void-artwork"
|
hostmakedepends="ImageMagick void-artwork"
|
||||||
short_desc="Asahi Linux bootloader"
|
short_desc="Asahi Linux bootloader"
|
||||||
|
|
Loading…
Add table
Reference in a new issue