summaryrefslogtreecommitdiffstats
path: root/tools/builder_common.sh
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 18:29:42 -0300
commit53a39a3dcacc7e3c6f197ec1b5f89c8301ce8305 (patch)
treeda870aedb931d59a78d5dc24c91c565515fd0052 /tools/builder_common.sh
parenta38d70e41727cd0bdb838acc13a0ec3340d93fcc (diff)
downloadpfsense-53a39a3dcacc7e3c6f197ec1b5f89c8301ce8305.zip
pfsense-53a39a3dcacc7e3c6f197ec1b5f89c8301ce8305.tar.gz
Fix sha356 filenames for ISO and memstick files
Diffstat (limited to 'tools/builder_common.sh')
-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 8ffab0f..42f375b 100644
--- a/tools/builder_common.sh
+++ b/tools/builder_common.sh
@@ -2356,16 +2356,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
}
@@ -2406,7 +2402,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