From 00e6278cac0cfca4f744caf76d6d67bd18f6c7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 2 Jul 2022 14:41:41 +0200 Subject: kernel-install: raise fuss if plugins are called without the expected parameters --- src/kernel-install/50-depmod.install | 4 ++-- src/kernel-install/90-loaderentry.install | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/kernel-install') diff --git a/src/kernel-install/50-depmod.install b/src/kernel-install/50-depmod.install index 67319afe61..fdb7545dc9 100755 --- a/src/kernel-install/50-depmod.install +++ b/src/kernel-install/50-depmod.install @@ -18,8 +18,8 @@ # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see . -COMMAND="$1" -KERNEL_VERSION="$2" +COMMAND="${1:?}" +KERNEL_VERSION="${2:?}" case "$COMMAND" in add) diff --git a/src/kernel-install/90-loaderentry.install b/src/kernel-install/90-loaderentry.install index d6b90a7b1d..a640ea42ca 100755 --- a/src/kernel-install/90-loaderentry.install +++ b/src/kernel-install/90-loaderentry.install @@ -18,9 +18,9 @@ # You should have received a copy of the GNU Lesser General Public License # along with systemd; If not, see . -COMMAND="$1" -KERNEL_VERSION="$2" -ENTRY_DIR_ABS="$3" +COMMAND="${1:?}" +KERNEL_VERSION="${2:?}" +ENTRY_DIR_ABS="${3:?}" KERNEL_IMAGE="$4" INITRD_OPTIONS_SHIFT=4 -- cgit v1.2.1