diff --git a/fix_dir_dates.sh b/fix_dir_dates.sh index 9bf5383..dd6538e 100755 --- a/fix_dir_dates.sh +++ b/fix_dir_dates.sh @@ -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)"