add UMASK=002 for creating new files
This commit is contained in:
parent
133f8bbdd6
commit
18bd1a019a
1 changed files with 4 additions and 0 deletions
|
@ -236,6 +236,7 @@ run_fix () {
|
||||||
|
|
||||||
case $move in
|
case $move in
|
||||||
true)
|
true)
|
||||||
|
export UMASK=002
|
||||||
echo move to ${dest}/${MIMEDEST}/%Y/%Y_%m
|
echo move to ${dest}/${MIMEDEST}/%Y/%Y_%m
|
||||||
if $movecreatedate ; then
|
if $movecreatedate ; then
|
||||||
loginfo "$(exiftool '-Directory<CreateDate' -d ${dest}/${MIMEDEST}/%Y/%Y_%m -if '($CreateDate)' "$file" 2>&1 |tee -a ${LOGFILE})"
|
loginfo "$(exiftool '-Directory<CreateDate' -d ${dest}/${MIMEDEST}/%Y/%Y_%m -if '($CreateDate)' "$file" 2>&1 |tee -a ${LOGFILE})"
|
||||||
|
@ -244,6 +245,7 @@ run_fix () {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
copy)
|
copy)
|
||||||
|
export UMASK=002
|
||||||
echo copy to ${dest}/${MIMEDEST}/%Y/%Y_%m
|
echo copy to ${dest}/${MIMEDEST}/%Y/%Y_%m
|
||||||
if $movecreatedate ; then
|
if $movecreatedate ; then
|
||||||
loginfo "$(exiftool -o . '-Directory<DateTimeOriginal' -d ${dest}/${MIMEDEST}/%Y/%Y_%m -if '($datetimeoriginal)' "$file" 2>&1 |tee -a ${LOGFILE})"
|
loginfo "$(exiftool -o . '-Directory<DateTimeOriginal' -d ${dest}/${MIMEDEST}/%Y/%Y_%m -if '($datetimeoriginal)' "$file" 2>&1 |tee -a ${LOGFILE})"
|
||||||
|
@ -262,6 +264,7 @@ run_fix () {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
rename)
|
rename)
|
||||||
|
export UMASK=002
|
||||||
echo move to ${dest}/${MIMEDEST}/%Y/%Y_%m
|
echo move to ${dest}/${MIMEDEST}/%Y/%Y_%m
|
||||||
if $movecreatedate ; then
|
if $movecreatedate ; then
|
||||||
loginfo "$(exiftool -v '-FileName<CreateDate' -d ${dest}/${MIMEDEST}/%Y/%Y_%m/%Y%m%d_%H%M%S%%-c.%%e -if '($CreateDate)' "$file" 2>&1 | tee -a ${LOGFILE})"
|
loginfo "$(exiftool -v '-FileName<CreateDate' -d ${dest}/${MIMEDEST}/%Y/%Y_%m/%Y%m%d_%H%M%S%%-c.%%e -if '($CreateDate)' "$file" 2>&1 | tee -a ${LOGFILE})"
|
||||||
|
@ -270,6 +273,7 @@ run_fix () {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
copyrename)
|
copyrename)
|
||||||
|
export UMASK=002
|
||||||
echo move to ${dest}/${MIMEDEST}/%Y/%Y_%m
|
echo move to ${dest}/${MIMEDEST}/%Y/%Y_%m
|
||||||
if $movecreatedate ; then
|
if $movecreatedate ; then
|
||||||
loginfo "$(exiftool -o . '-FileName<CreateDate' -d ${dest}/${MIMEDEST}/%Y/%Y_%m/%Y%m%d_%H%M%S%%-c.%%e -if '($CreateDate)' "$file" 2>&1 | tee -a ${LOGFILE})"
|
loginfo "$(exiftool -o . '-FileName<CreateDate' -d ${dest}/${MIMEDEST}/%Y/%Y_%m/%Y%m%d_%H%M%S%%-c.%%e -if '($CreateDate)' "$file" 2>&1 | tee -a ${LOGFILE})"
|
||||||
|
|
Loading…
Reference in a new issue