copy_buildsync.sh: simplify the latest-iso symlink checks
This commit is contained in:
parent
7c16ed27d6
commit
ffa42e7a10
|
@ -112,11 +112,18 @@ process_arch() {
|
||||||
|
|
||||||
if [ -n "${iso_list}" ]; then
|
if [ -n "${iso_list}" ]; then
|
||||||
echo -e "${header}" >"${OUT_ISO}"
|
echo -e "${header}" >"${OUT_ISO}"
|
||||||
if [[ ! $(echo ${iso_list} | egrep "amd64|x86") ]]; then
|
# Some arches produce more than one type of iso.
|
||||||
echo -e "${iso_list}" |awk '{print $3}' | grep "$latest_iso_date" >>${OUT_ISO}
|
# Only apply the current-iso link logic to them.
|
||||||
|
# TODO: Should make this dynamic based on the iso list.
|
||||||
|
case ${ARCH} in
|
||||||
|
amd64|x86)
|
||||||
rm -f current-iso
|
rm -f current-iso
|
||||||
ln -sf "$latest_iso_date" current-iso
|
;;
|
||||||
fi
|
*)
|
||||||
|
echo -e "${iso_list}" |awk '{print $3}' | grep "$latest_iso_date" >>${OUT_ISO}
|
||||||
|
ln -sfT "$latest_iso_date" current-iso
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
if [ -n "${stage3_list}" ]; then
|
if [ -n "${stage3_list}" ]; then
|
||||||
echo -e "${header}" >"${OUT_STAGE3}"
|
echo -e "${header}" >"${OUT_STAGE3}"
|
||||||
|
|
Loading…
Reference in a new issue