Hi All,
I'm creating a button in Self Service that, once pressed it will remove certain files/folders. with the rm and rm -r (for folders) commands.
This works as expected. However, if the folders are already removed and users would press that button again, then Self Service shows an error (obviously because it couldn't execute the command as there was nothing to delete).
I'm not a huge terminal command guru, so could any of you clever clogs improve my 'script' so it never shows an error and stop my users from reporting "Self service is showing an error when I press the button"?
I'm sure it is an easy fix...