check for filetime
This commit is contained in:
parent
f511f165ed
commit
af0721c7a1
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ do
|
|||
if [ -n "${last_file}" ]; then
|
||||
echo "Last modified file is '${last_file}'"
|
||||
filetime="$(jq '.info_dict.filetime' -- "${last_file}" )"
|
||||
if [ "${filetime}" != "null" ]; then
|
||||
if [ "${filetime}" != "null" ] && [ -n "${filetime}" ]; then
|
||||
last_file_time_formated=$(date -d "@${filetime}" +%Y%m%d%H%M.%S)
|
||||
touch -t "${last_file_time_formated}" -- "${dir}"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue