Reputation: 24621
pkill return status > 0 if error ( for example if not found process ). How to return 0 status independing result of pkill ?
Upvotes: 7
Views: 4273
Reputation: 91270
Either just don't test for the result, or do:
pkill whatever || true
Upvotes: 15