Skip to content

Conversation

eugenevd
Copy link

If there are no files found by find due to mtime (ie, nothing older than 30 days), zero arguments are passed on to xargs' rm which result in

Oct 25 14:14:50 xmachina save.sh[2772]: rm: missing operand
Oct 25 14:14:50 xmachina save.sh[2772]: Try 'rm --help' for more information.

to be seen in journalctl.

This way rm is only executed when something is found.

@bruno- bruno- merged commit 9c7ec63 into tmux-plugins:master Oct 26, 2017
@bruno-
Copy link
Member

bruno- commented Oct 26, 2017

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants