Skip to content

Commit

Permalink
Update saveImage.sh: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Jul 9, 2023
1 parent fa13327 commit 1328f28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/saveImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ if [[ ${IMG_UPLOAD} == "true" ]]; then
fi

# Goes in root of Website so second arg is "".
upload_all --remote-web --remote_server "${FILE_TO_UPLOAD}" "" "${DESTINATION_NAME}" "SaveImage"
upload_all --remote-web --remote-server "${FILE_TO_UPLOAD}" "" "${DESTINATION_NAME}" "SaveImage"
RET=$?

[[ ${RESIZE_UPLOADS} == "true" ]] && rm -f "${FILE_TO_UPLOAD}" # was a temporary file
Expand All @@ -462,7 +462,7 @@ if [[ ${TIMELAPSE_MINI_UPLOAD_VIDEO} == "true" && ${SAVE_IMAGE} == "true" && ${R
MINI="mini-timelapse.mp4"
FILE_TO_UPLOAD="${ALLSKY_TMP}/${MINI}"

upload_all --remote-web --remote_server "${FILE_TO_UPLOAD}" "" "${MINI}" "MiniTimelapse"
upload_all --remote-web --remote-server "${FILE_TO_UPLOAD}" "" "${MINI}" "MiniTimelapse"
RET=$?
if [[ ${RET} -eq 0 && ${TIMELAPSE_MINI_UPLOAD_THUMBNAIL} == "true" ]]; then
UPLOAD_THUMBNAIL_NAME="mini-timelapse.jpg"
Expand All @@ -474,7 +474,7 @@ if [[ ${TIMELAPSE_MINI_UPLOAD_VIDEO} == "true" && ${SAVE_IMAGE} == "true" && ${R
echo "${ME}Mini timelapse thumbnail not created!"
else
# Use --silent because we just displayed message(s) above for this image.
upload_all --remote-web --remote_server --silent \
upload_all --remote-web --remote-server --silent \
"${UPLOAD_THUMBNAIL}" \
"" \
"${UPLOAD_THUMBNAIL_NAME}" \
Expand Down

0 comments on commit 1328f28

Please sign in to comment.