aboutsummaryrefslogtreecommitdiff
path: root/examples/gradle/dokka-library-publishing-example/gradlew
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gradle/dokka-library-publishing-example/gradlew')
-rwxr-xr-xexamples/gradle/dokka-library-publishing-example/gradlew6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/gradle/dokka-library-publishing-example/gradlew b/examples/gradle/dokka-library-publishing-example/gradlew
index 1b6c7873..a69d9cb6 100755
--- a/examples/gradle/dokka-library-publishing-example/gradlew
+++ b/examples/gradle/dokka-library-publishing-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.