From 91e6129ac9b67dac90dd24c8bbcfacad46de9a6c Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Wed, 18 Dec 2024 06:10:01 -0600 Subject: [PATCH] Update saveImage.sh: SC2086 fix --- scripts/saveImage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/saveImage.sh b/scripts/saveImage.sh index 6b04b9557..f39025fe0 100755 --- a/scripts/saveImage.sh +++ b/scripts/saveImage.sh @@ -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"