diff options
author | Renato Botelho <renato@netgate.com> | 2016-04-11 09:37:15 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-04-11 09:37:50 -0300 |
commit | 695ba439fdf7e0f85b8a768518ed2129427e526d (patch) | |
tree | 952d3171a7302ffead3c4fd8d03f0e3d06dcb65f /tools/builder_common.sh | |
parent | 52563f5d40aa1e18e6ab4a8f5cdbff789f3e1683 (diff) | |
download | pfsense-695ba439fdf7e0f85b8a768518ed2129427e526d.zip pfsense-695ba439fdf7e0f85b8a768518ed2129427e526d.tar.gz |
Fix sha356 filenames for ISO and memstick files
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r-- | tools/builder_common.sh | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh index 55384d7..485cbc9 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -2357,16 +2357,12 @@ snapshots_create_latest_symlink() { return fi - if [ -f "${_image}.gz" ]; then - local _image_fixed="${_image}.gz" - elif [ -f "${_image}" ]; then - local _image_fixed=${_image} - else + elif [ ! -f "${_image}" ]; then return fi - local _symlink=$(echo ${_image_fixed} | sed "s,${TIMESTAMP_SUFFIX},-latest,") - ln -sf $(basename ${_image_fixed}) ${_symlink} + local _symlink=$(echo ${_image} | sed "s,${TIMESTAMP_SUFFIX},-latest,") + ln -sf $(basename ${_image}) ${_symlink} ln -sf $(basename ${_image}).sha256 ${_symlink}.sha256 } @@ -2407,7 +2403,8 @@ snapshots_copy_to_staging_iso_updates() { if [ ! -f "${_img}.gz" ]; then continue fi - sha256 ${_img}.gz > ${_img}.sha256 + _img="${_img}.gz" + sha256 ${_img} > ${_img}.sha256 cp -l ${_img}* $STAGINGAREA/ 2>/dev/null snapshots_create_latest_symlink ${STAGINGAREA}/$(basename ${_img}) done |