Skip to content

Commit

Permalink
Add debug
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart X Addison <[email protected]>
  • Loading branch information
sxa committed Jan 28, 2021
1 parent 9f32588 commit 2205240
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,12 @@ getBinaryOpenjdk()
if [[ $jar_name == *zip || $jar_name == *jar ]]; then
unzip -q $jar_name -d $extract_dir
else
# some debug-image tar has parent folder. This is like gtar --strip 1
mkdir dir.$$ && cd dir.$$ && gzip -cd ../$jar_name | tar xof - && cd * && tar cf - . | (cd ../../$extract_dir && tar xpf -) && cd ../.. && rm -rf dir.$$
# some debug-image tar has parent folder ... strip it
if tar --version | grep GNU > /dev/null 2>&1; then
gzip -cd $jar_name | tar xof - -C $extract_dir --strip 1
else
mkdir dir.$$ && cd dir.$$ && gzip -cd ../$jar_name | tar xof - && cd * && tar cf - . | (cd ../../$extract_dir && tar xpf -) && cd ../.. && rm -rf dir.$$
fi
fi
else
if [ -d "$SDKDIR/openjdkbinary/tmp" ]; then
Expand Down

0 comments on commit 2205240

Please sign in to comment.