From 6f47bde825fa13119a0d91851a27ba53b76ccbd3 Mon Sep 17 00:00:00 2001 From: Bela Date: Sun, 18 Nov 2018 00:49:43 +0100 Subject: [PATCH] long option --- addDateTaken.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addDateTaken.sh b/addDateTaken.sh index d062190..8bd239d 100755 --- a/addDateTaken.sh +++ b/addDateTaken.sh @@ -182,7 +182,7 @@ addDates() 201[0-9]_[01][0-9]_[0-3][0-9]*) vLog "dont rename bc already date there: $fil";; *.[jJ][pP][gG]|*.[jJ][pP][eE][gG]|*.[pP][nN][gG]) #|*.3gp|*.[aA][vV][iI]) - date=$(exiftool -d "%Y_%m_%d_%H%M%S" -CreateDate "$fil" | awk '{print $4}') + date=$(exiftool -dateFormat "%Y_%m_%d_%H%M%S" -CreateDate "$fil" | awk '{print $4}') # -z length is zero if test -z "$date" then