fix empty string check

This commit is contained in:
root 2020-03-05 13:15:35 +08:00
parent 5a9a221bc2
commit 262d948ef2

2
adoptopenjdk.sh Normal file → Executable file
View File

@ -23,7 +23,7 @@ function downloadRelease() {
downloaded=true downloaded=true
} }
done done
if [[ -z $installer_name ]]; then if [[ ! -z "$installer_name" ]]; then
dest_filename="$BASE_PATH/$version/$binary_type/$architecture/$os/$installer_name" dest_filename="$BASE_PATH/$version/$binary_type/$architecture/$os/$installer_name"
downloaded=false downloaded=false
if [[ -f $dest_filename ]]; then if [[ -f $dest_filename ]]; then