Skip to content

Commit 0db1f99

Browse files
findepiwendigo
authored andcommitted
Prevent global var override in bash script
1 parent 0fe68bb commit 0db1f99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/docker/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ shift $((OPTIND - 1))
3939
SOURCE_DIR="../.."
4040

4141
function temurin_jdk_link() {
42-
JDK_VERSION="${1}"
43-
ARCH="${2}"
42+
local JDK_VERSION="${1}"
43+
local ARCH="${2}"
4444

4545
versionsUrl="https://api.adoptium.net/v3/info/release_names?heap_size=normal&image_type=jdk&lts=true&os=linux&page=0&page_size=20&project=jdk&release_type=ga&semver=false&sort_method=DEFAULT&sort_order=ASC&vendor=eclipse&version=%28${JDK_VERSION}%2C%5D"
4646
if ! result=$(curl -fLs "$versionsUrl" -H 'accept: application/json'); then

0 commit comments

Comments
 (0)