summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-04-11 09:37:15 -0300
committerRenato Botelho <renato@netgate.com>2016-04-11 09:37:34 -0300
commit2c96987c3d6a44257a3f802c251f90de068089a5 (patch)
tree8ea91f7b5a65824458cb80c388b396fdbe47832c /tools
parentff51bd61592bd84233beca48b5ee5bb775fa95fa (diff)
downloadpfsense-2c96987c3d6a44257a3f802c251f90de068089a5.zip
pfsense-2c96987c3d6a44257a3f802c251f90de068089a5.tar.gz
Fix sha356 filenames for ISO and memstick files
Diffstat (limited to 'tools')
-rw-r--r--tools/builder_common.sh13
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
OpenPOWER on IntegriCloud