Skip to content

Commit

Permalink
Strip /.* from computed root folder name of the jdk
Browse files Browse the repository at this point in the history
- The tar file might not include folder names but only file names.

Fixes #34
  • Loading branch information
merks committed Dec 11, 2024
1 parent dc8c90c commit af227ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion releng/org.eclipse.justj.releng/build-jre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ fi
if [[ $os == win ]]; then
jdk=$(unzip -qql $file | head -1 | sed 's/.* //;s%/%%')
else
jdk=$(tar -ztf $file | head -1 | sed 's%/%%')
jdk=$(tar -ztf $file | head -1 | sed 's%/.*%%')
fi

# Extract the JDK.
Expand Down

0 comments on commit af227ad

Please sign in to comment.