Skip to content

Commit

Permalink
fix(consentio): print only on failing stems
Browse files Browse the repository at this point in the history
  • Loading branch information
streambinder committed Aug 21, 2024
1 parent ad77091 commit e371bb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions multimedia/consentio/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ find "${TARGET}" -type f -not -name '.*' | grep -iE ".*.($EXTS)$" | while read -
[[ "${perm}" == "644" ]] || echo "fname=${fname} perm=${perm}"

# check timestamps
exif_timestamps="$(exiftool -time:all "$fname")"
exif_create_date="$(awk -F': ' '/^Create Date /{print $2}' <<< "${exif_timestamps}" | awk 'NR==1 {print $1}')"
fs_modification_time="$(awk -F': ' '/^File Modification Date\/Time /{print $2}' <<< "${exif_timestamps}" | awk 'NR==1 {print $1}')"
[[ "${fs_modification_time}" == "${exif_create_date}" ]] || echo "fname=${fname} fst=${fs_modification_time} et=${exif_create_date}"
exif_timestamps="$(exiftool -time:all "$fname")"
exif_create_date="$(awk -F': ' '/^Create Date /{print $2}' <<< "${exif_timestamps}" | awk 'NR==1 {print $1}')"
fs_modification_time="$(awk -F': ' '/^File Modification Date\/Time /{print $2}' <<< "${exif_timestamps}" | awk 'NR==1 {print $1}')"
[[ "${fs_modification_time}" == "${exif_create_date}" ]] || echo "fname=${fname} fst=${fs_modification_time} et=${exif_create_date}"
done

0 comments on commit e371bb2

Please sign in to comment.