Skip to content

Commit

Permalink
Use hyphenated path when looking for unzipped binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroon-Khel committed Oct 11, 2024
1 parent 8effd97 commit 8e31c24
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
- not usr_lib_jvm_exists.stat.exists
tags: adoptopenjdk_install

- name: Check if jdk-{{ jdk_version }} is already installed in the target location
- name: Check if jdk{{ jdk_version }} is already installed in the target location
shell: ls -ld {{ path }} >/dev/null 2>&1
failed_when: false
register: adoptopenjdk_installed
Expand Down Expand Up @@ -356,7 +356,7 @@
until: adoptopenjdk_unpack is not failed

- name: Get {{ path }}* full path name
shell: set -o pipefail | ls -ld {{ path }}* 2>/dev/null | awk '{print $9}'
shell: set -o pipefail | ls -ld /usr/lib/jvm/jdk-{{ jdk_version }}* 2>/dev/null | awk '{print $9}'
register: adoptopenjdk_dir
changed_when: false
when:
Expand Down

0 comments on commit 8e31c24

Please sign in to comment.