Skip to content

Fuabioo/dontrm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dontrm

Don't remove your system 🤡

Installation

https://dontrm.fuabioo.com/#installation

Build from source

go install

Or

go build && sudo mv dontrm /usr/bin/dontrm

Usage

Executing the following should be safe: (don't test it on your system though)

dontrm version
sudo dontrm -fr /*
dontrm ./path/or/file/to/remove

You can also use a DRY_RUN environment variable to prevent any changes from happening.

DRY_RUN=1 dontrm ./path/or/file/to/remove

TODO

  • Set up goreleaser
  • Implement installation script
  • Configurable rm path
  • Mount a virtualized environment to test the more dangerous commands