Skip to content

Commit

Permalink
Update saveImage.sh: SC2086 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EricClaeys authored Dec 18, 2024
1 parent 1f2f579 commit 91e6129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/saveImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ if [[ ${SAVE_IMAGE} == "true" ]]; then
# Remove the oldest files if we haven't reached the limit.
if [[ ${LEFT} -le 0 ]]; then
KEEP=$((TIMELAPSE_MINI_IMAGES - TIMELAPSE_MINI_FREQUENCY))
x="$( tail -${KEEP} "${MINI_TIMELAPSE_FILES}" )"
x="$( tail "-${KEEP}" "${MINI_TIMELAPSE_FILES}" )"
echo -e "${x}" > "${MINI_TIMELAPSE_FILES}"
if [[ ${ALLSKY_DEBUG_LEVEL} -ge 3 ]]; then
echo -en "${YELLOW}${ME}: Replaced ${TIMELAPSE_MINI_FREQUENCY} oldest, LEFT=$LEFT, KEEP=$KEEP"
Expand Down

0 comments on commit 91e6129

Please sign in to comment.