1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-10 01:17:44 +03:00

kernel-install: raise fuss if plugins are called without the expected parameters

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-07-02 14:41:41 +02:00
parent f875e6bc39
commit 00e6278cac
2 changed files with 5 additions and 5 deletions

View File

@ -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)

View File

@ -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