#!/bin/bash
# Find the first JBR folder within the standard JetBrains installation path
JBR_PATH=$(find "/c/Program Files/JetBrains" -name "jbr" -type d -print -quit 2>/dev/null)
if [ -n "$JBR_PATH" ]; then
echo "Using JBR found at: $JBR_PATH"
./gradlew clean build -Dorg.gradle.java.home="$JBR_PATH"
else
echo "IntelliJ JBR not found. Falling back to default JAVA_HOME."
./gradlew clean build
fi
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)