Shell

What do you tend to include in every script you write?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

Few example:

  • Comments on how to run it and/or what it does
  • If a shell script, adding "set -e" since I want the script to exit if a certain command failed

You can have an entirely different answer. It's based only on your experience and preferences.