Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4924220c authored by Nicola Corna's avatar Nicola Corna
Browse files

Use `xargs -r` when removing the old repo logs

parent fb179acc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -391,7 +391,7 @@ if ! [ -z "$OPENDELTA_BUILDS_JSON" ]; then
fi

if [ "$DELETE_OLD_LOGS" -gt "0" ]; then
  find "$LOGS_DIR" -maxdepth 1 -name repo-*.log | sort | head -n -$DELETE_OLD_LOGS | xargs rm
  find "$LOGS_DIR" -maxdepth 1 -name repo-*.log | sort | head -n -$DELETE_OLD_LOGS | xargs -r rm
fi

if [ -f /root/userscripts/end.sh ]; then