diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2018-10-11 14:53:50 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2019-03-04 17:09:51 +0100 |
commit | a14f5068290140667e9880154ca44a2bf36e68cd (patch) | |
tree | a734ce8a0fb2143629213e506c0e3e1602ddc015 | |
parent | ad24b0bd5408e605e9f35269e6b2303684c7f50d (diff) |
image_type_tezi: use $() instead of backticks
Prefer the $() syntax, it is POSIX and allows nesting.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r-- | classes/image_type_tezi.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
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} |