#!/usr/bin/env sh

set -e

DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
CACHED_GRADLE="$HOME/.gradle/wrapper/dists/gradle-9.4.1-bin/arn2x92ynaizyzdaamcbpbhtj/gradle-9.4.1/bin/gradle"

if [ -x "$CACHED_GRADLE" ]; then
  exec "$CACHED_GRADLE" "$@"
fi

echo "Gradle 9.4.1 is not unpacked in the local wrapper cache." >&2
echo "Install Gradle or run a standard Gradle wrapper bootstrap for this project." >&2
exit 1
