Skip to content

Commit

Permalink
Merge pull request #593 from thomasjacquin/IMG_PREFIX-missing
Browse files Browse the repository at this point in the history
Add missing IMG_PREFIX
  • Loading branch information
ckuethe authored Oct 6, 2021
2 parents 6e7cc7a + 0caa746 commit 6a57f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/copy_notification_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ if [ "${DAYTIME_SAVE}" = "true" -o "${CAPTURE_24HR}" = "true" ] ; then
fi
fi

FULL_FILENAME="${IMG_PREFIX}${FULL_FILENAME}"
mv -f "${IMAGE_TO_USE}" "${ALLSKY_HOME}/${FULL_FILENAME}" # so web severs can see it.

# If upload is true, optionally create a smaller version of the image and upload it
Expand All @@ -70,8 +71,7 @@ if [ "${UPLOAD_IMG}" = "true" ] ; then
fi
fi

# We're actually uploading $IMAGE_TO_USE, but show $NOTIFICATIONFILE
# in the message since it's more descriptive.
# We're actually uploading $IMAGE_TO_USE, but show $NOTIFICATIONFILE in the message since it's more descriptive.
echo -e "${ME}: Uploading $(basename "${NOTIFICATIONFILE}")\n"
"${ALLSKY_SCRIPTS}/upload.sh" --silent "${IMAGE_TO_USE}" "${IMGDIR}" "${FULL_FILENAME}" "NotificationImage"
exit $?
Expand Down

0 comments on commit 6a57f41

Please sign in to comment.