From da96c6f57e9d123f450f9597edc30e70f3d12f03 Mon Sep 17 00:00:00 2001 From: grayhook Date: Sat, 14 Jun 2025 10:11:44 +0700 Subject: [PATCH] bump; --- Makefile | 2 ++ fix_gto.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cb9feb7 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +install: + sudo cp fix_gto.sh /usr/local/bin/ diff --git a/fix_gto.sh b/fix_gto.sh index 645e33b..6ad9a41 100755 --- a/fix_gto.sh +++ b/fix_gto.sh @@ -7,9 +7,9 @@ while read -r json_file; do filename="$dirname/$filename" if [[ -e "$filename" ]]; then touch_string=$(date -d "@$picture_ts" +%Y%m%d%H%M) - ls -la "$filename" + #ls -la "$filename" touch -m -t "$touch_string" "$filename" - ls -la "$filename" + #ls -la "$filename" else >&2 echo "Cannot find $filename referenced by $json_file" fi