Skip to main content
Glama
fix-startup-scripts.sh•1.61 kB
#!/bin/bash # Fix Path References in All Startup Scripts # This script corrects relative path references in migrated startup scripts echo "šŸ”§ Fixing path references in startup scripts..." # Get the directory containing this script SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" BIN_DIR="$SCRIPT_DIR" # Function to fix a single script fix_script() { local script_file="$1" local script_name=$(basename "$script_file") if [[ -f "$script_file" ]]; then echo " šŸ“ Fixing $script_name..." # Fix cd command to go to project root sed -i '' 's|cd "$(dirname "$0")"|cd "$(dirname "$0")/.."|g' "$script_file" # Fix relative paths that were moved from root to bin/ sed -i '' 's|../../tools/|tools/|g' "$script_file" sed -i '' 's|../tools/|tools/|g' "$script_file" sed -i '' 's|../../src/|src/|g' "$script_file" sed -i '' 's|../src/|src/|g' "$script_file" sed -i '' 's|../../dist/|dist/|g' "$script_file" sed -i '' 's|../dist/|dist/|g' "$script_file" echo " āœ… $script_name fixed" else echo " āŒ $script_name not found" fi } # Fix all startup scripts in bin directory for script in "$BIN_DIR"/start-*.sh; do if [[ -f "$script" ]]; then fix_script "$script" fi done echo "" echo "šŸŽ‰ All startup scripts have been fixed!" echo "" echo "šŸ“‹ Fixed scripts:" ls -la "$BIN_DIR"/start-*.sh | while read -r line; do echo " • $(echo "$line" | awk '{print $9}')" done echo "" echo "āœ… Path references corrected for project reorganization"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rkm097git/euconquisto-composer-mcp-poc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server