fix: Correct date syntax

This commit is contained in:
Carlos Solís 2025-06-08 22:09:58 +00:00
parent f6cb04f0ac
commit f301b3ecb8

View file

@ -75,7 +75,7 @@ fi
find . -type f -iname "*.info.json" -exec ls -t {} + | while read -r xp; do find . -type f -iname "*.info.json" -exec ls -t {} + | while read -r xp; do
x="${xp##./}" x="${xp##./}"
df=$(jq -rc '.timestamp' "${subfolder}/${x}") df=$(jq -rc '.timestamp' "${subfolder}/${x}")
touch "${subfolder}/${x}" -d "${df}" touch "${subfolder}/${x}" -d "@${df}"
#TODO: Read the date directly #TODO: Read the date directly
#df=$(jq -rc '.timestamp' "${subfolder}/${x}") #df=$(jq -rc '.timestamp' "${subfolder}/${x}")
#if [[ "${breaktime}" =~ ^[0-9]+$ ]]; then #if [[ "${breaktime}" =~ ^[0-9]+$ ]]; then