kmodtool: enquote $@ usage

* kmodtool: Put $@ instances into quotes as otherwise arguments
will undergo word splitting.

Resolves: #2002887
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
This commit is contained in:
Eugene Syromiatnikov 2019-01-25 11:36:23 +01:00
parent a4aed2feef
commit b4645cd8aa

View File

@ -57,13 +57,13 @@ get_verrel ()
print_verrel ()
{
get_verrel $@
get_verrel "$@"
echo "${verrel}"
}
get_variant ()
{
get_verrel $@
get_verrel "$@"
variant=${1:-$(uname -r)}
variant=${variant/#$verrel?(.)/}
variant=${variant:-'""'}
@ -258,12 +258,12 @@ while [ "${1}" ] ; do
case "${1}" in
verrel)
shift
print_verrel $@
print_verrel "$@"
exit $?
;;
variant)
shift
print_variant $@
print_variant "$@"
exit $?
;;
rpmtemplate)