grubby-bls: show absolute path when printing error about incorrect param

The error message is not printing the absolute path to the images, fix it.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
Javier Martinez Canillas 2019-02-02 00:37:15 +01:00
parent 9f336a65dd
commit f742fa15b3
No known key found for this signature in database
GPG Key ID: C751E590D63F3D69

View File

@ -309,7 +309,7 @@ remove_bls_fragment() {
local indexes=($(param_to_indexes "$1"))
if [[ $indexes = "-1" ]]; then
print_error "The param $1 is incorrect"
print_error "The param $(get_prefix)$1 is incorrect"
fi
for i in "${indexes[@]}"; do
@ -456,13 +456,14 @@ update_args() {
}
update_bls_fragment() {
local param="$1"
local indexes=($(param_to_indexes "$1")) && shift
local remove_args=$1 && shift
local add_args=$1 && shift
local initrd=$1 && shift
if [[ $indexes = "-1" ]]; then
print_error "The param $1 is incorrect"
print_error "The param $(get_prefix)${param} is incorrect"
fi
for i in ${indexes[*]}; do