From 2ab1ae74cfadeac8225dc6d06734d707b1fe2796 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Wed, 20 Nov 2024 12:33:19 +0200 Subject: [PATCH] change both times --- fix_dir_dates.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)"