Commit ce903eef180e4dbffe254dc14ad8d282c45266b5

Authored by katiefaith
Committed by Phil Elwell
1 parent 8c8cbeda

Fixed regex for sig file to replace only extension

Previously, relative paths would confuse the file name generation regex.
With this change, only the final '.' character is matched as the
beginning of the file extension.
Showing 1 changed file with 1 additions and 1 deletions
tools/update-pieeprom.sh
... ... @@ -150,7 +150,7 @@ if [ -z "${PUBLIC_PEM_FILE}" ]; then
150 150 PUBLIC_PEM_FILE="${PEM_FILE}"
151 151 fi
152 152  
153   -DST_IMAGE_SIG="$(echo "${DST_IMAGE}" | sed 's/\..*//').sig"
  153 +DST_IMAGE_SIG="$(echo "${DST_IMAGE}" | sed 's/\.[^.]*$//').sig"
154 154  
155 155 update_eeprom "${SRC_IMAGE}" "${CONFIG}" "${DST_IMAGE}" "${PEM_FILE}" "${PUBLIC_PEM_FILE}"
156 156 image_digest "${DST_IMAGE}" "${DST_IMAGE_SIG}"
... ...