set -e
set -u
-VERSION="0.4.0"
+VERSION="0.4.1"
MY_BASE=$(basename "${0}")
#--------------------------------------------
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