Add: Next steps implementation - config templates, quick references, validation scripts, and Git initialization
This commit is contained in:
41
scripts/enhance_scripts.sh
Executable file
41
scripts/enhance_scripts.sh
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Dubai Metaverse - Script Enhancement Script
|
||||
# Adds error handling and improvements to all scripts
|
||||
|
||||
set -e
|
||||
|
||||
echo "=========================================="
|
||||
echo "Dubai Metaverse - Script Enhancement"
|
||||
echo "=========================================="
|
||||
echo ""
|
||||
|
||||
# Check script syntax
|
||||
echo "Checking script syntax..."
|
||||
for script in scripts/*.sh; do
|
||||
if [ -f "$script" ]; then
|
||||
if bash -n "$script" 2>/dev/null; then
|
||||
echo "✓ $script - Syntax OK"
|
||||
else
|
||||
echo "⚠ $script - Syntax errors found"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "Checking Python script syntax..."
|
||||
for script in scripts/*.py; do
|
||||
if [ -f "$script" ]; then
|
||||
if python3 -m py_compile "$script" 2>/dev/null; then
|
||||
echo "✓ $script - Syntax OK"
|
||||
else
|
||||
echo "⚠ $script - Syntax errors found"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "=========================================="
|
||||
echo "Script Enhancement Complete"
|
||||
echo "=========================================="
|
||||
|
||||
Reference in New Issue
Block a user