diff --git a/src/build.sh b/src/build.sh index f1012f7..b47e6d7 100755 --- a/src/build.sh +++ b/src/build.sh @@ -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