|
1 | 1 | #!/bin/sh
|
2 | 2 |
|
3 | 3 | #
|
4 |
| -# Copyright (c) 2024-2025 OnixByte |
| 4 | +# Copyright © 2015-2021 the original authors. |
5 | 5 | #
|
6 |
| -# Permission is hereby granted, free of charge, to any person obtaining a copy |
7 |
| -# of this software and associated documentation files (the "Software"), to deal |
8 |
| -# in the Software without restriction, including without limitation the rights |
9 |
| -# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
10 |
| -# copies of the Software, and to permit persons to whom the Software is |
11 |
| -# furnished to do so, subject to the following conditions: |
| 6 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +# you may not use this file except in compliance with the License. |
| 8 | +# You may obtain a copy of the License at |
12 | 9 | #
|
13 |
| -# The above copyright notice and this permission notice shall be included in all |
14 |
| -# copies or substantial portions of the Software. |
| 10 | +# https://www.apache.org/licenses/LICENSE-2.0 |
15 | 11 | #
|
16 |
| -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
17 |
| -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
18 |
| -# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
19 |
| -# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
20 |
| -# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
21 |
| -# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
22 |
| -# SOFTWARE. |
| 12 | +# Unless required by applicable law or agreed to in writing, software |
| 13 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +# See the License for the specific language governing permissions and |
| 16 | +# limitations under the License. |
| 17 | +# |
| 18 | +# SPDX-License-Identifier: Apache-2.0 |
23 | 19 | #
|
24 | 20 |
|
25 | 21 | ##############################################################################
|
|
61 | 57 | # Darwin, MinGW, and NonStop.
|
62 | 58 | #
|
63 | 59 | # (3) This script is generated from the Groovy template
|
64 |
| -# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt |
| 60 | +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt |
65 | 61 | # within the Gradle project.
|
66 | 62 | #
|
67 | 63 | # You can find Gradle at https://github.com/gradle/gradle/.
|
|
90 | 86 | # shellcheck disable=SC2034
|
91 | 87 | APP_BASE_NAME=${0##*/}
|
92 | 88 | # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
93 |
| -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit |
| 89 | +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s |
| 90 | +' "$PWD" ) || exit |
94 | 91 |
|
95 | 92 | # Use the maximum available, or set MAX_FD != -1 to use that value.
|
96 | 93 | MAX_FD=maximum
|
|
0 commit comments