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:
		
							parent
							
								
									9f336a65dd
								
							
						
					
					
						commit
						f742fa15b3
					
				| @ -309,7 +309,7 @@ remove_bls_fragment() { | |||||||
|     local indexes=($(param_to_indexes "$1")) |     local indexes=($(param_to_indexes "$1")) | ||||||
| 
 | 
 | ||||||
|     if [[ $indexes = "-1" ]]; then |     if [[ $indexes = "-1" ]]; then | ||||||
| 	print_error "The param $1 is incorrect" | 	print_error "The param $(get_prefix)$1 is incorrect" | ||||||
|     fi |     fi | ||||||
| 
 | 
 | ||||||
|     for i in "${indexes[@]}"; do |     for i in "${indexes[@]}"; do | ||||||
| @ -456,13 +456,14 @@ update_args() { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| update_bls_fragment() { | update_bls_fragment() { | ||||||
|  |     local param="$1" | ||||||
|     local indexes=($(param_to_indexes "$1")) && shift |     local indexes=($(param_to_indexes "$1")) && shift | ||||||
|     local remove_args=$1 && shift |     local remove_args=$1 && shift | ||||||
|     local add_args=$1 && shift |     local add_args=$1 && shift | ||||||
|     local initrd=$1 && shift |     local initrd=$1 && shift | ||||||
| 
 | 
 | ||||||
|     if [[ $indexes = "-1" ]]; then |     if [[ $indexes = "-1" ]]; then | ||||||
|         print_error "The param $1 is incorrect" |         print_error "The param $(get_prefix)${param} is incorrect" | ||||||
|     fi |     fi | ||||||
| 
 | 
 | ||||||
|     for i in ${indexes[*]}; do |     for i in ${indexes[*]}; do | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user