Improve 'current' symlink to backup destinations

This commit is contained in:
Jun Futagawa 2020-11-25 11:24:37 +09:00
parent 08cb857664
commit 2ca7598593
1 changed files with 1 additions and 1 deletions

View File

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