]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
kernel-install: raise fuss if plugins are called without the expected parameters
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 2 Jul 2022 12:41:41 +0000 (14:41 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Jul 2022 07:24:43 +0000 (09:24 +0200)
src/kernel-install/50-depmod.install
src/kernel-install/90-loaderentry.install

index 67319afe61d7ad6589450a5c5a4cba5e3ec8f39b..fdb7545dc92ab0432b953319f87eb4e776afc0d3 100755 (executable)
@@ -18,8 +18,8 @@
 # You should have received a copy of the GNU Lesser General Public License
 # along with systemd; If not, see <https://www.gnu.org/licenses/>.
 
-COMMAND="$1"
-KERNEL_VERSION="$2"
+COMMAND="${1:?}"
+KERNEL_VERSION="${2:?}"
 
 case "$COMMAND" in
     add)
index d6b90a7b1d6277530ef49298cd019ae383fc6381..a640ea42ca82cad52e5a1a145e1593db13dea208 100755 (executable)
@@ -18,9 +18,9 @@
 # You should have received a copy of the GNU Lesser General Public License
 # along with systemd; If not, see <https://www.gnu.org/licenses/>.
 
-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