2025-10-04 18:42:18 +08:00
|
|
|
#!/bin/bash
|
2025-11-12 17:09:04 +08:00
|
|
|
# Entry point for the Go-based disk analyzer binary bundled with Mole.
|
2025-10-04 18:42:18 +08:00
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
2025-11-12 17:09:04 +08:00
|
|
|
GO_BIN="$SCRIPT_DIR/analyze-go"
|
|
|
|
|
if [[ -x "$GO_BIN" ]]; then
|
|
|
|
|
exec "$GO_BIN" "$@"
|
2025-10-04 18:42:18 +08:00
|
|
|
fi
|
2025-11-12 17:09:04 +08:00
|
|
|
|
2025-11-19 11:33:15 +08:00
|
|
|
echo "Bundled analyzer binary not found. Please reinstall Mole or run mo update to restore it." >&2
|
2025-11-12 17:09:04 +08:00
|
|
|
exit 1
|