Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚠️ Running this will frequently delete the parent directory ⚠️ #28

Open
wparad opened this issue Oct 1, 2022 · 2 comments
Open

Comments

@wparad
Copy link

wparad commented Oct 1, 2022

If you run this executable occasionally it will decide to delete the current working directory as well as the target.

I'm almost positive it was happening when running safe-rm CHILD_DIRECTORY -rf or safe-rm ./CHILD_DIRECTORY -rf, but I often would only find out ~10 minutes later that it happened when doing development that the directory I was in was no longer available. Or maybe it was putting the -rf first that caused the problem. One of these was the issue.

@adoyle-h
Copy link

How to reproduce this issue?

@wparad
Copy link
Author

wparad commented Nov 14, 2022

I'm almost positive it was happening when running safe-rm CHILD_DIRECTORY -rf or safe-rm ./CHILD_DIRECTORY -rf, but I often would only find out ~10 minutes later that it happened when doing development that the directory I was in was no longer available. Or maybe it was putting the -rf first that caused the problem. One of these was the issue.

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

No branches or pull requests

2 participants