verify-submodules-not-checked-out.sh 284 B

1234567891011
  1. #!/bin/bash
  2. if [ ! -f "./submodules-not-checked-out/regular-file.txt" ]; then
  3. echo "Expected regular file does not exist"
  4. exit 1
  5. fi
  6. if [ -f "./submodules-not-checked-out/submodule-level-1/submodule-file.txt" ]; then
  7. echo "Unexpected submodule file exists"
  8. exit 1
  9. fi