mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-16 07:09:29 +00:00
14 lines
376 B
Bash
Executable File
14 lines
376 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
script_dir="$(cd "$(dirname "$0")" && pwd)"
|
|
base="$script_dir/pr"
|
|
if common_git_dir=$(git -C "$script_dir" rev-parse --path-format=absolute --git-common-dir 2>/dev/null); then
|
|
canonical_base="$(dirname "$common_git_dir")/scripts/pr"
|
|
if [ -x "$canonical_base" ]; then
|
|
base="$canonical_base"
|
|
fi
|
|
fi
|
|
|
|
exec "$base" review-init "$@"
|