Put in order · Vibe coding with Claude Code course · Module 15: Advanced Claude Code

Sorting: Testing a hook without Claude

Arrange the line that gives the hook script JSON with the .env path and prints its exit code:

Items to put in order

  • ;
  • echo $?
  • |
  • bash .claude/hooks/protect-files.sh
  • echo '{"tool_input":{"file_path":"/x/treasure-map/.env"}}'

You can check the correct answer by solving this task in the CodeWorlds game.