mirror of
https://github.com/status-im/infra-nimbus.git
synced 2025-01-18 17:52:17 +00:00
logclean-job: fix bug in script that deletes newer first
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
b1ad100a50
commit
9153bb02f1
@ -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}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user