typer/scripts/test-files.sh
Sebastián Ramírez 5d7eb2285d 🔧 Update tests tools
2020-01-05 20:50:14 +01:00

10 lines
350 B
Bash
Executable file

#!/usr/bin/env bash
set -e
set -x
# Check README.md is up to date
diff --brief docs/index.md README.md
# Check copy paste errors in tutorials
if grep -r --include "*.md" "Usage: tutorial" ./docs ; then echo "Incorrect console demo"; exit 1 ; fi
if grep -r --include "*.md" "python tutorial" ./docs ; then echo "Incorrect console demo"; exit 1 ; fi