aboutsummaryrefslogtreecommitdiff
path: root/gradlew
diff options
context:
space:
mode:
authorTaco <SkytkRSfan3895@gmail.com>2022-09-09 15:24:18 +0000
committerGitHub <noreply@github.com>2022-09-09 15:24:18 +0000
commitf2e1ffe52e876772f55340f716cb5c679affedd0 (patch)
tree614712ea0c70a185f319dc5485d2a3f778cfe488 /gradlew
parentaddd6705edfc846f210c8bd36d8355493462d879 (diff)
downloadinfinity-for-reddit-f2e1ffe52e876772f55340f716cb5c679affedd0.tar
infinity-for-reddit-f2e1ffe52e876772f55340f716cb5c679affedd0.tar.gz
infinity-for-reddit-f2e1ffe52e876772f55340f716cb5c679affedd0.tar.bz2
infinity-for-reddit-f2e1ffe52e876772f55340f716cb5c679affedd0.tar.lz
infinity-for-reddit-f2e1ffe52e876772f55340f716cb5c679affedd0.tar.xz
infinity-for-reddit-f2e1ffe52e876772f55340f716cb5c679affedd0.tar.zst
infinity-for-reddit-f2e1ffe52e876772f55340f716cb5c679affedd0.zip
Update gradle wrapper (#1006)
* Update gradle wrapper * Update AGP, fix gradle deprecations
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.