change both times

This commit is contained in:
Antonio J. Delgado 2024-11-20 12:33:19 +02:00
parent 33bff3c7f8
commit 2ab1ae74cf

View file

@ -8,5 +8,5 @@ do
echo "Last modification time of the file is '${last_file_time}'"
last_file_time_formated=$(date -d "@${last_file_time}" +%Y%m%d%H%M.%S)
echo "Last modification time formated is '${last_file_time_formated}'"
touch -a -m -t "${last_file_time_formated}" -- "${dir}"
touch -t "${last_file_time_formated}" -- "${dir}"
done <<< "$(find . -mindepth 1 -maxdepth 1 -type d)"