← All courses

Clean scripts: shellcheck

Get a script down to zero shellcheck warnings — and understand which real bugs each one saves you from.

10 tasks
  1. Find the shellcheck warning codeeasy
  2. Quote "$@"easy
  3. Quote the variablemedium
  4. Replace the deprecated backticksmedium
  5. Make cd safemedium
  6. Read a file with while readmedium
  7. Compare numbers as numbersmedium
  8. Turn on strict modemedium
  9. A strict script without warningsmedium
  10. Bring the script to zero warningsmedium