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:
parent
a4aed2feef
commit
b4645cd8aa
8
kmodtool
8
kmodtool
@ -57,13 +57,13 @@ get_verrel ()
|
|||||||
|
|
||||||
print_verrel ()
|
print_verrel ()
|
||||||
{
|
{
|
||||||
get_verrel $@
|
get_verrel "$@"
|
||||||
echo "${verrel}"
|
echo "${verrel}"
|
||||||
}
|
}
|
||||||
|
|
||||||
get_variant ()
|
get_variant ()
|
||||||
{
|
{
|
||||||
get_verrel $@
|
get_verrel "$@"
|
||||||
variant=${1:-$(uname -r)}
|
variant=${1:-$(uname -r)}
|
||||||
variant=${variant/#$verrel?(.)/}
|
variant=${variant/#$verrel?(.)/}
|
||||||
variant=${variant:-'""'}
|
variant=${variant:-'""'}
|
||||||
@ -258,12 +258,12 @@ while [ "${1}" ] ; do
|
|||||||
case "${1}" in
|
case "${1}" in
|
||||||
verrel)
|
verrel)
|
||||||
shift
|
shift
|
||||||
print_verrel $@
|
print_verrel "$@"
|
||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
variant)
|
variant)
|
||||||
shift
|
shift
|
||||||
print_variant $@
|
print_variant "$@"
|
||||||
exit $?
|
exit $?
|
||||||
;;
|
;;
|
||||||
rpmtemplate)
|
rpmtemplate)
|
||||||
|
Loading…
Reference in New Issue
Block a user