mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
don't fail when no old logs to delete
This commit is contained in:
parent
0c542f6deb
commit
a45a81ee2e
@ -397,7 +397,7 @@ for branch in ${BRANCH_NAME//,/ }; do
|
||||
done
|
||||
|
||||
if [ "$DELETE_OLD_LOGS" -gt "0" ]; then
|
||||
find "$LOGS_DIR" -maxdepth 1 -name 'repo-*.log' | sort | head -n -"$DELETE_OLD_LOGS" | xargs -r rm
|
||||
find "$LOGS_DIR" -maxdepth 1 -name 'repo-*.log' | sort | head -n -"$DELETE_OLD_LOGS" | xargs -r rm || true
|
||||
fi
|
||||
|
||||
if [ -f /root/userscripts/end.sh ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user