diff mbox series

[meta-swupdate,11/12] swupdate-enc: add missing $

Message ID 20191023211101.16591-12-adrian.freihofer@siemens.com
State Changes Requested
Headers show
Series simplify swupdate config | expand

Commit Message

Freihofer, Adrian Oct. 23, 2019, 9:11 p.m. UTC
Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
---
 classes/swupdate-enc.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefano Babic Oct. 26, 2019, 8:19 p.m. UTC | #1
Hi Adrian,

On 23/10/19 23:11, Adrian Freihofer wrote:
> Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
> ---
>  classes/swupdate-enc.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/classes/swupdate-enc.bbclass b/classes/swupdate-enc.bbclass
> index 5e3fe79..198ae98 100644
> --- a/classes/swupdate-enc.bbclass
> +++ b/classes/swupdate-enc.bbclass
> @@ -13,7 +13,7 @@ swu_encrypt_file() {
>  	key=`cat ${SWUPDATE_AES_FILE} | grep ^key | cut -d '=' -f 2`
>  	iv=`cat ${SWUPDATE_AES_FILE} | grep ^iv | cut -d '=' -f 2`
>  	salt=`cat ${SWUPDATE_AES_FILE} | grep ^salt | cut -d '=' -f 2`
> -	if [ -z ${salt} ] || [ -z ${key} ] || [ -z {iv} ];then
> +	if [ -z ${salt} ] || [ -z ${key} ] || [ -z ${iv} ];then
>  		bbfatal "SWUPDATE_AES_FILE=$SWUPDATE_AES_FILE does not contain valid keys"
>  	fi
>  	openssl enc -aes-256-cbc -in ${input} -out ${output} -K ${key} -iv ${iv} -S ${salt}
> 


Thanks for fixing this bug.

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/classes/swupdate-enc.bbclass b/classes/swupdate-enc.bbclass
index 5e3fe79..198ae98 100644
--- a/classes/swupdate-enc.bbclass
+++ b/classes/swupdate-enc.bbclass
@@ -13,7 +13,7 @@  swu_encrypt_file() {
 	key=`cat ${SWUPDATE_AES_FILE} | grep ^key | cut -d '=' -f 2`
 	iv=`cat ${SWUPDATE_AES_FILE} | grep ^iv | cut -d '=' -f 2`
 	salt=`cat ${SWUPDATE_AES_FILE} | grep ^salt | cut -d '=' -f 2`
-	if [ -z ${salt} ] || [ -z ${key} ] || [ -z {iv} ];then
+	if [ -z ${salt} ] || [ -z ${key} ] || [ -z ${iv} ];then
 		bbfatal "SWUPDATE_AES_FILE=$SWUPDATE_AES_FILE does not contain valid keys"
 	fi
 	openssl enc -aes-256-cbc -in ${input} -out ${output} -K ${key} -iv ${iv} -S ${salt}