From b25402a49111e3448e62440cf491d97913005b6c Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Mon, 28 Sep 2015 13:00:00 +0200 Subject: [PATCH] Some changes on output in set-jpeg-comment.sh --- set-jpeg-comment.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/set-jpeg-comment.sh b/set-jpeg-comment.sh index fec69f3..1cc3398 100755 --- a/set-jpeg-comment.sh +++ b/set-jpeg-comment.sh @@ -4,7 +4,7 @@ set -e set -u -VERSION="0.4.0" +VERSION="0.4.1" MY_BASE=$(basename "${0}") #-------------------------------------------- @@ -179,16 +179,12 @@ cleanup() { trap "cleanup; exit 8" INT TERM EXIT if [[ "${replace}" = "y" ]] ; then - if [[ "${verbose}" = "y" ]] ; then - echo "Replacing comment in '${IMAGE_FILE}' ..." - fi + echo "Replacing comment in '${IMAGE_FILE}' to '${NEW_COMMENT}' ..." if [[ "${simulate}" = "n" ]] ; then wrjpgcom -replace -comment "${NEW_COMMENT}" "${IMAGE_FILE}" > "${TMP_FILE}" fi else - if [[ "${verbose}" = "y" ]] ; then - echo "Adding comment to '${IMAGE_FILE}' ..." - fi + echo "Adding comment '${NEW_COMMENT}' to '${IMAGE_FILE}' ..." if [[ "${simulate}" = "n" ]] ; then wrjpgcom -comment "${NEW_COMMENT}" "${IMAGE_FILE}" > "${TMP_FILE}" fi -- 2.39.5