Files
CleanMM/bin/analyze.sh
2025-11-19 11:33:15 +08:00

14 lines
357 B
Bash
Executable File

#!/bin/bash
# Entry point for the Go-based disk analyzer binary bundled with Mole.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
GO_BIN="$SCRIPT_DIR/analyze-go"
if [[ -x "$GO_BIN" ]]; then
exec "$GO_BIN" "$@"
fi
echo "Bundled analyzer binary not found. Please reinstall Mole or run mo update to restore it." >&2
exit 1