From 18bd1a019aa86a407f7e665e17d0676b2f6ab9a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Sat, 10 Jul 2021 03:10:10 +0200 Subject: [PATCH] add UMASK=002 for creating new files --- bin/exif-fixdatetime | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/exif-fixdatetime b/bin/exif-fixdatetime index 1824fe8..b5927ce 100755 --- a/bin/exif-fixdatetime +++ b/bin/exif-fixdatetime @@ -236,6 +236,7 @@ run_fix () { case $move in true) + export UMASK=002 echo move to ${dest}/${MIMEDEST}/%Y/%Y_%m if $movecreatedate ; then loginfo "$(exiftool '-Directory&1 |tee -a ${LOGFILE})" @@ -244,6 +245,7 @@ run_fix () { fi ;; copy) + export UMASK=002 echo copy to ${dest}/${MIMEDEST}/%Y/%Y_%m if $movecreatedate ; then loginfo "$(exiftool -o . '-Directory&1 |tee -a ${LOGFILE})" @@ -262,6 +264,7 @@ run_fix () { fi ;; rename) + export UMASK=002 echo move to ${dest}/${MIMEDEST}/%Y/%Y_%m if $movecreatedate ; then loginfo "$(exiftool -v '-FileName&1 | tee -a ${LOGFILE})" @@ -270,6 +273,7 @@ run_fix () { fi ;; copyrename) + export UMASK=002 echo move to ${dest}/${MIMEDEST}/%Y/%Y_%m if $movecreatedate ; then loginfo "$(exiftool -o . '-FileName&1 | tee -a ${LOGFILE})"