From cc28a53add8756bdddaef1e40611083649a10d30 Mon Sep 17 00:00:00 2001 From: graysky Date: Mon, 4 Oct 2021 07:49:54 -0400 Subject: [PATCH] core/linux-raspberrypi4: use if/elif for checks from now on --- core/linux-raspberrypi4/PKGBUILD | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/linux-raspberrypi4/PKGBUILD b/core/linux-raspberrypi4/PKGBUILD index 82e9fa2df..5e6ef25b4 100644 --- a/core/linux-raspberrypi4/PKGBUILD +++ b/core/linux-raspberrypi4/PKGBUILD @@ -36,8 +36,11 @@ md5sums_aarch64=('f7855453cf26a32256472c34f67748cf' '9669d916a5929a2eedbd64477f83d99e') # setup vars -[[ $CARCH == "armv7h" ]] && _kernel=kernel7.img KARCH=arm _image=zImage _config=config _bconfig=config.txt -[[ $CARCH == "aarch64" ]] && _kernel=kernel8.img KARCH=arm64 _image=Image _config=config8 _bconfig=config8.txt +if [[ $CARCH == "armv7h" ]]; then + _kernel=kernel7.img KARCH=arm _image=zImage _config=config _bconfig=config.txt +else [[ $CARCH == "aarch64" ]]; then + _kernel=kernel8.img KARCH=arm64 _image=Image _config=config8 _bconfig=config8.txt +fi prepare() { cd "${srcdir}/${_srcname}"