add debug
This commit is contained in:
parent
5fc0c8e91c
commit
180b9bb1ba
1 changed files with 2 additions and 0 deletions
|
@ -13,8 +13,10 @@ do
|
||||||
filetime="$(jq '.info_dict.filetime' -- "${last_file}" )"
|
filetime="$(jq '.info_dict.filetime' -- "${last_file}" )"
|
||||||
if [ "${filetime}" != "null" ] && [ -n "${filetime}" ]; then
|
if [ "${filetime}" != "null" ] && [ -n "${filetime}" ]; then
|
||||||
last_file_time_formated=$(date -d "@${filetime}" +%Y%m%d%H%M.%S)
|
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}"
|
touch -t "${last_file_time_formated}" -- "${dir}"
|
||||||
else
|
else
|
||||||
|
echo "Setting times for '${dir}' to same as '${last_file}'..."
|
||||||
touch -r "${last_file}" -- "${dir}"
|
touch -r "${last_file}" -- "${dir}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue