Skip to content

Commit

Permalink
Add quote around *.zip (#5665)
Browse files Browse the repository at this point in the history
  • Loading branch information
prodroy89 authored Oct 9, 2024
1 parent 5632b5c commit 23e34df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ getBinaryOpenjdk()
jdk_file_array=(${jdk_files//\\n/ })
last_index=$(( ${#jdk_file_array[@]} - 1 ))
if [[ $last_index == 0 ]]; then
if [[ $download_url =~ '*.tar.gz' ]] || [[ $download_url =~ '*.zip' ]] || [[ $jdk_files == *.zip ]]; then
if [[ $download_url =~ '*.tar.gz' ]] || [[ $download_url =~ '*.zip' ]] || [[ $jdk_files == '*.zip' ]]; then
nested_zip="${jdk_file_array[0]}"
echo "${nested_zip} is a nested zip"
unzip -q $nested_zip -d .
Expand Down

0 comments on commit 23e34df

Please sign in to comment.