From 0dabe40200ee3c1d4df1f347ea296a17981605ae Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 1 Feb 2025 00:19:11 +0100 Subject: [PATCH] boot: reduce code Signed-off-by: AuxXxilium --- files/initrd/opt/arc/boot.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/initrd/opt/arc/boot.sh b/files/initrd/opt/arc/boot.sh index f71b9558..27a323f4 100755 --- a/files/initrd/opt/arc/boot.sh +++ b/files/initrd/opt/arc/boot.sh @@ -63,9 +63,7 @@ BUILDDONE="$(readConfigKey "arc.builddone" "${USER_CONFIG_FILE}")" # Build Sanity Check [ "${BUILDDONE}" = "false" ] && die "Loader build not completed!" -if [ -z "${MODELID}" ] || [ "${MODELID}" != "${MODEL}" ]; then - die "Loader build not completed! Model mismatch!" -fi +[[ -z "${MODELID}" || "${MODELID}" != "${MODEL}" ]] && die "Loader build not completed! Model mismatch!" # HardwareID Check if [ "${ARCPATCH}" = "true" ]; then HARDWAREID="$(readConfigKey "arc.hardwareid" "${USER_CONFIG_FILE}")"