add debug

This commit is contained in:
Antonio J. Delgado 2024-11-20 12:53:00 +02:00
parent 5fc0c8e91c
commit 180b9bb1ba

View file

@ -13,8 +13,10 @@ do
filetime="$(jq '.info_dict.filetime' -- "${last_file}" )"
if [ "${filetime}" != "null" ] && [ -n "${filetime}" ]; then
last_file_time_formated=$(date -d "@${filetime}" +%Y%m%d%H%M.%S)
echo "Setting times for '${dir}' to '${last_file_time_formated}'..."
touch -t "${last_file_time_formated}" -- "${dir}"
else
echo "Setting times for '${dir}' to same as '${last_file}'..."
touch -r "${last_file}" -- "${dir}"
fi
fi