Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by macintux

1 year ago

It took me way too many years to figure out that any management script I write for myself and my co-workers should, by default, execute as a dry run operation.

I now put a -e/--execute flag on every destructive command; without that, the script will conduct some basic sanity checks and halt before making changes.

0 comments

macintux

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities