Merge branch 'fix-current-symlink' into 'master'

Improve 'current' symlink to backup destinations

See merge request ungleich-public/ccollect!16
This commit is contained in:
poljakowski 2020-11-25 16:15:27 +01:00
commit 3687267dd7

View file

@ -868,7 +868,7 @@ while [ "${source_no}" -lt "${no_sources}" ]; do
latest_dir="$(ls -${TSORT}p1 "${ddir}" | grep '/$' | head -n 1)" || \
_exit_err "Failed to list content of ${ddir}."
ln -snf "${ddir}${latest_dir}" "${ddir}current" || \
ln -snf "${ddir}/${latest_dir}" "${ddir}/current" || \
_exit_err "Failed to create 'current' symlink."
#