From: Zbigniew Jędrzejewski-Szmek Date: Sat, 2 Jul 2022 12:41:41 +0000 (+0200) Subject: kernel-install: raise fuss if plugins are called without the expected parameters X-Git-Tag: v252-rc1~671^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00e6278cac0cfca4f744caf76d6d67bd18f6c7b5;p=thirdparty%2Fsystemd.git kernel-install: raise fuss if plugins are called without the expected parameters --- diff --git a/src/kernel-install/50-depmod.install b/src/kernel-install/50-depmod.install index 67319afe61d..fdb7545dc92 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 d6b90a7b1d6..a640ea42ca8 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