aboutsummaryrefslogtreecommitdiff
path: root/examples/gradle/dokka-gradle-example/gradlew
diff options
context:
space:
mode:
authorGoooler <wangzongler@gmail.com>2022-08-24 22:36:53 +0800
committerGitHub <noreply@github.com>2022-08-24 16:36:53 +0200
commitce1998247e0478a9d22860026efb9694e2916396 (patch)
treea8263e65f912767c84bedf418f72d90a8b0ac2df /examples/gradle/dokka-gradle-example/gradlew
parent98fc184da7c31588b92adda50257cddb99fab649 (diff)
downloaddokka-ce1998247e0478a9d22860026efb9694e2916396.tar.gz
dokka-ce1998247e0478a9d22860026efb9694e2916396.tar.bz2
dokka-ce1998247e0478a9d22860026efb9694e2916396.zip
Bump Gradle to 7.5.1 (#2618)
Diffstat (limited to 'examples/gradle/dokka-gradle-example/gradlew')
-rwxr-xr-xexamples/gradle/dokka-gradle-example/gradlew6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/gradle/dokka-gradle-example/gradlew b/examples/gradle/dokka-gradle-example/gradlew
index 1b6c7873..a69d9cb6 100755
--- a/examples/gradle/dokka-gradle-example/gradlew
+++ b/examples/gradle/dokka-gradle-example/gradlew
@@ -205,6 +205,12 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \
"$@"
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+ die "xargs is not available"
+fi
+
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.