From cb422371e7e8bc77b0c39bec27a2061d9a466473 Mon Sep 17 00:00:00 2001 From: Alexandr Savca Date: Mon, 11 Dec 2023 16:32:37 +0200 Subject: [PATCH] mkinitramfs: fix shellcheck warnings --- mkinitramfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkinitramfs b/mkinitramfs index 154facc..a65e7fa 100755 --- a/mkinitramfs +++ b/mkinitramfs @@ -386,8 +386,8 @@ print_version() { } parse_options() { - OPTS=$(getopt -a -n "$ARGV0" -l $LOPTS -o $SOPTS -- "$@") || exit 1 - eval set -- "$OPTS"; unset OPTS + _OPTS=$(getopt -a -n "$ARGV0" -l "$LOPTS" -o "$SOPTS" -- "$@") || exit 1 + eval set -- "$_OPTS"; unset _OPTS while true; do case $1 in -D| --helper) MKINITRAMFS_DEVHELPER="$2" ; shift ;;