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