mirror of
https://github.com/tw93/Mole.git
synced 2026-02-04 20:54:50 +00:00
16 lines
378 B
Bash
Executable File
16 lines
378 B
Bash
Executable File
#!/bin/bash
|
|
# Mole - Analyze command.
|
|
# Runs the Go disk analyzer UI.
|
|
# Uses bundled analyze-go binary.
|
|
|
|
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
|