Convention photo: fixed script.
This commit is contained in:
parent
eeda367855
commit
a6429e91f9
|
@ -33,7 +33,7 @@ renameFromDirectoryWithExifOnly()
|
||||||
#echo "$filename"
|
#echo "$filename"
|
||||||
if [[ $(jhead $filename | grep -c Date) == 1 ]]; then
|
if [[ $(jhead $filename | grep -c Date) == 1 ]]; then
|
||||||
#echo "yop $filename"
|
#echo "yop $filename"
|
||||||
jhead -n%Y%m%d-%H%M%S "$filename"
|
jhead -nIMG%Y%m%d-%H%M%S "$filename"
|
||||||
else
|
else
|
||||||
echo "$filename IGNORED"
|
echo "$filename IGNORED"
|
||||||
fi
|
fi
|
||||||
|
@ -46,7 +46,7 @@ renameFromDirectory()
|
||||||
do
|
do
|
||||||
filename=$(basename $path)
|
filename=$(basename $path)
|
||||||
#echo "$filename"
|
#echo "$filename"
|
||||||
jhead -n%Y%m%d-%H%M%S "$filename"
|
jhead -nIMG%Y%m%d-%H%M%S "$filename"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ elif [[ "$1" == "-f" && $# > 1 ]]; then
|
||||||
for filename do
|
for filename do
|
||||||
if [[ "$filename" != "-f" ]]; then
|
if [[ "$filename" != "-f" ]]; then
|
||||||
#echo "$filename"
|
#echo "$filename"
|
||||||
jhead -n%Y%m%d-%H%M%S "$filename"
|
jhead -nIMG%Y%m%d-%H%M%S "$filename"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
@ -70,7 +70,7 @@ else
|
||||||
#echo "$filename"
|
#echo "$filename"
|
||||||
if [[ $(jhead $filename | grep -c Date) == 1 ]]; then
|
if [[ $(jhead $filename | grep -c Date) == 1 ]]; then
|
||||||
#echo "yop $filename"
|
#echo "yop $filename"
|
||||||
jhead -n%Y%m%d-%H%M%S "$filename"
|
jhead -nIMG%Y%m%d-%H%M%S "$filename"
|
||||||
else
|
else
|
||||||
echo "$filename IGNORED"
|
echo "$filename IGNORED"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue