From f742fa15b39e312cc4c686031f5b11d79301f620 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Sat, 2 Feb 2019 00:37:15 +0100 Subject: [PATCH] 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 --- grubby-bls | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/grubby-bls b/grubby-bls index 8f4b73c..92ea61b 100755 --- a/grubby-bls +++ b/grubby-bls @@ -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