|
1 | 1 | #!/bin/sh
|
2 | 2 |
|
3 | 3 | #
|
4 |
| -# Copyright © 2015-2021 the original authors. |
| 4 | +# Copyright © 2015-2021 the original authors. |
5 | 5 | #
|
6 | 6 | # Licensed under the Apache License, Version 2.0 (the "License");
|
7 | 7 | # you may not use this file except in compliance with the License.
|
|
32 | 32 | # Busybox and similar reduced shells will NOT work, because this script
|
33 | 33 | # requires all of these POSIX shell features:
|
34 | 34 | # * functions;
|
35 |
| -# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», |
36 |
| -# «${var#prefix}», «${var%suffix}», and «$( cmd )»; |
37 |
| -# * compound commands having a testable exit status, especially «case»; |
38 |
| -# * various built-in commands including «command», «set», and «ulimit». |
| 35 | +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», |
| 36 | +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; |
| 37 | +# * compound commands having a testable exit status, especially «case»; |
| 38 | +# * various built-in commands including «command», «set», and «ulimit». |
39 | 39 | #
|
40 | 40 | # Important for patching:
|
41 | 41 | #
|
@@ -205,6 +205,12 @@ set -- \
|
205 | 205 | org.gradle.wrapper.GradleWrapperMain \
|
206 | 206 | "$@"
|
207 | 207 |
|
| 208 | +# Stop when "xargs" is not available. |
| 209 | +if ! command -v xargs >/dev/null 2>&1 |
| 210 | +then |
| 211 | + die "xargs is not available" |
| 212 | +fi |
| 213 | + |
208 | 214 | # Use "xargs" to parse quoted args.
|
209 | 215 | #
|
210 | 216 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
|
0 commit comments