Convention photo: fixed script.

This commit is contained in:
Christian P. MOMON 2022-07-09 19:10:30 +02:00
parent eeda367855
commit a6429e91f9
1 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ renameFromDirectoryWithExifOnly()
#echo "$filename"
if [[ $(jhead $filename | grep -c Date) == 1 ]]; then
#echo "yop $filename"
jhead -n%Y%m%d-%H%M%S "$filename"
jhead -nIMG%Y%m%d-%H%M%S "$filename"
else
echo "$filename IGNORED"
fi
@ -46,7 +46,7 @@ renameFromDirectory()
do
filename=$(basename $path)
#echo "$filename"
jhead -n%Y%m%d-%H%M%S "$filename"
jhead -nIMG%Y%m%d-%H%M%S "$filename"
done
}
@ -62,7 +62,7 @@ elif [[ "$1" == "-f" && $# > 1 ]]; then
for filename do
if [[ "$filename" != "-f" ]]; then
#echo "$filename"
jhead -n%Y%m%d-%H%M%S "$filename"
jhead -nIMG%Y%m%d-%H%M%S "$filename"
fi
done
else
@ -70,7 +70,7 @@ else
#echo "$filename"
if [[ $(jhead $filename | grep -c Date) == 1 ]]; then
#echo "yop $filename"
jhead -n%Y%m%d-%H%M%S "$filename"
jhead -nIMG%Y%m%d-%H%M%S "$filename"
else
echo "$filename IGNORED"
fi