From: Frank Brehm Date: Mon, 28 Sep 2015 11:00:00 +0000 (+0200) Subject: Some changes on output in set-jpeg-comment.sh X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=b25402a49111e3448e62440cf491d97913005b6c;p=my-stuff%2Fpython.git Some changes on output in set-jpeg-comment.sh --- 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