aboutsummaryrefslogtreecommitdiff
path: root/gradlew
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-09-09 15:25:16 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2022-09-09 15:25:16 +0000
commitb55135e8805d04582114197b895da508c45920e5 (patch)
tree76381e604c766b7ea8150ac3ad3a3890bfe7f23e /gradlew
parent854833a5dbb6edcf0448d78717207e747bc5cf7e (diff)
parentf2e1ffe52e876772f55340f716cb5c679affedd0 (diff)
downloadinfinity-for-reddit-b55135e8805d04582114197b895da508c45920e5.tar
infinity-for-reddit-b55135e8805d04582114197b895da508c45920e5.tar.gz
infinity-for-reddit-b55135e8805d04582114197b895da508c45920e5.tar.bz2
infinity-for-reddit-b55135e8805d04582114197b895da508c45920e5.tar.lz
infinity-for-reddit-b55135e8805d04582114197b895da508c45920e5.tar.xz
infinity-for-reddit-b55135e8805d04582114197b895da508c45920e5.tar.zst
infinity-for-reddit-b55135e8805d04582114197b895da508c45920e5.zip
Merge branch 'master' of github.com:Docile-Alligator/Infinity-For-Reddit
Diffstat (limited to 'gradlew')
-rwxr-xr-xgradlew16
1 files changed, 11 insertions, 5 deletions
diff --git a/gradlew b/gradlew
index c53aefaa..a69d9cb6 100755
--- a/gradlew
+++ b/gradlew
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# Copyright © 2015-2021 the original authors.
+# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -32,10 +32,10 @@
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
-# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
-# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
-# * compound commands having a testable exit status, especially «case»;
-# * various built-in commands including «command», «set», and «ulimit».
+# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+# * compound commands having a testable exit status, especially «case»;
+# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
@@ -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.