mvp-factory-openhands/test-scripts/explore.sh

16 lines
540 B
Bash

#!/bin/bash
echo "Current directory: $(pwd)"
echo "Directory contents:"
ls -la
echo ""
echo "Checking for common project files:"
find . -maxdepth 2 -name "package.json" -o -name "requirements.txt" -o -name "pom.xml" -o -name "Makefile" -o -name "Dockerfile" -o -name "*.gradle" 2>/dev/null || echo "No common build files found in current directory"
echo ""
echo "Git repository status:"
if [ -d ".git" ]; then
git status
echo ""
git log --oneline -5 2>/dev/null || echo "No commits found"
else
echo "Not a git repository"
fi