about summary refs log tree commit diff
path: root/android/gradlew
diff options
context:
space:
mode:
Diffstat (limited to 'android/gradlew')
-rwxr-xr-xandroid/gradlew6
1 files changed, 6 insertions, 0 deletions
diff --git a/android/gradlew b/android/gradlew
index 1b6c78733..a69d9cb6c 100755
--- a/android/gradlew
+++ b/android/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.