Skip to content

Commit

Permalink
Add missing IMG_PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Oct 6, 2021
1 parent c0b313a commit 0caa746
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

1 comment on commit 0caa746

@EricClaeys
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #568

Please sign in to comment.