logclean-job: fix bug in script that deletes newer first

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-02-27 15:37:49 +01:00
parent b1ad100a50
commit 9153bb02f1
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -23,7 +23,7 @@ if [[ ${INDICES_NUM} -le ${INDICES_KEEP} ]]; then
fi
# Subtract how many to keep from number of existing indices
INDICES_TO_DELETE=$(echo "${INDICES}" | tail -n$((INDICES_NUM-INDICES_KEEP)) )
INDICES_TO_DELETE=$(echo "${INDICES}" | head -n$((INDICES_NUM-INDICES_KEEP)) )
echo "${INDICES_TO_DELETE}"