We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c13bbd commit 8d16355Copy full SHA for 8d16355
.github/actions/configure-gradle/action.yml
@@ -18,6 +18,13 @@ runs:
18
echo Configuring custom Gradle distribution URL with version: $gradleVersion
19
echo Setting distribution URL to: https://d2pjps8lqszrgq.cloudfront.net/gradle-$gradleVersion-bin.zip
20
21
- sed -i "/distributionUrl/c\\
+ # Detect OS and set appropriate sed option
22
+ if [[ "$OSTYPE" == "darwin"* ]]; then
23
+ SED_OPTS=(-i '') # macOS (BSD sed) requires an empty string after -i
24
+ else
25
+ SED_OPTS=(-i) # Linux (GNU sed) does not need an empty string
26
+ fi
27
+
28
+ sed -i "${SED_OPTS[@]}" "/distributionUrl/c\\
29
distributionUrl=https://d2pjps8lqszrgq.cloudfront.net/gradle-$gradleVersion-bin.zip\\
30
" ./gradle/wrapper/gradle-wrapper.properties
0 commit comments