Skip to content

Commit

Permalink
Check for /usr/local/devkit before downloading
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard committed Apr 3, 2024
1 parent abe967b commit fafe575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/prepareWorkspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ downloadDevkit() {

local devkit_target="${BUILD_CONFIG[OS_ARCHITECTURE]}-linux-gnu"

local USR_LOCAL_DEVKIT="/usr/local/devkit"
local USR_LOCAL_DEVKIT="/usr/local/devkit/${BUILD_CONFIG[USE_ADOPTIUM_DEVKIT]}"
if [[ -d "${USR_LOCAL_DEVKIT}" ]]; then
local usrLocalDevkitInfo="${USR_LOCAL_DEVKIT}/devkit.info"
if ! grep "ADOPTIUM_DEVKIT_RELEASE=${BUILD_CONFIG[USE_ADOPTIUM_DEVKIT]}" "${usrLocalDevkitInfo}" || ! grep "ADOPTIUM_DEVKIT_TARGET=${devkit_target}" "${usrLocalDevkitInfo}"; then
Expand Down

0 comments on commit fafe575

Please sign in to comment.