name-by-date.sh: change default exif field to 'Date and Time (Original)'
authorW. Trevor King <wking@tremily.us>
Tue, 13 Nov 2012 16:17:16 +0000 (11:17 -0500)
committerW. Trevor King <wking@tremily.us>
Tue, 13 Nov 2012 16:17:16 +0000 (11:17 -0500)
posts/name-by-date/name-by-date.sh

index c5eea1e69bb94b19aa8427a37ca3199438b2f9ff..571d45fd3a957c0dbf9426f467518a074cbd9753 100755 (executable)
@@ -30,6 +30,7 @@ MV=$(which mv) || exit 1
 SED=$(which sed) || exit 1
 TEST=$(which '[') || exit 1  # but I just use [ in the script
 
+NAME_BY_DATE_FIELD_NAME="${NAME_BY_DATE_FIELD_NAME:-Date and Time (Original)}"
 
 while [ -n "$1" ]; do
        FILE=$1