From a14f5068290140667e9880154ca44a2bf36e68cd Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 11 Oct 2018 14:53:50 +0200 Subject: image_type_tezi: use $() instead of backticks Prefer the $() syntax, it is POSIX and allows nesting. Signed-off-by: Stefan Agner --- classes/image_type_tezi.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass index 404e171..26a8ff2 100644 --- a/classes/image_type_tezi.bbclass +++ b/classes/image_type_tezi.bbclass @@ -243,7 +243,7 @@ IMAGE_CMD_teziimg () { # Fixup release_date in image.json, convert ${TDX_VERDATE} to isoformat # This works around the non fatal ERRORS: "the basehash value changed" when DATE is referenced # in a python prefunction to do_image - ISODATE=`echo ${TDX_VERDATE} | sed 's/.\(....\)\(..\)\(..\).*/\1-\2-\3/'` + ISODATE=$(echo ${TDX_VERDATE} | sed 's/.\(....\)\(..\)\(..\).*/\1-\2-\3/') sed -i "s/%release_date%/$ISODATE/" ${DEPLOY_DIR_IMAGE}/image.json cd ${DEPLOY_DIR_IMAGE} -- cgit v1.2.3