Convention photo: fixed script.
This commit is contained in:
parent
eeda367855
commit
a6429e91f9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue