Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbtek committed Jan 21, 2019
1 parent 7c8ed83 commit 049de7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cookbooks/java/recipes/post-install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function main()
local -r javaHomeConfig="export JAVA_HOME=\"\$(ls -1 -d -t '/Library/Java/JavaVirtualMachines/'openjdk-*.jdk | head -1)/Contents/Home\""

appendToFileIfNotFound '/etc/profile' "${javaHomeConfig}" "${javaHomeConfig}" 'false' 'false' 'true'
grep -F "${javaHomeConfig}" '/etc/profile'
info "$(grep -F "${javaHomeConfig}" '/etc/profile')"
}

main "${@}"
2 changes: 1 addition & 1 deletion cookbooks/java/recipes/pre-install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function main()
checkRequireRootUser

rm -f -r '/Library/Java/JavaVirtualMachines'/openjdk-*.jdk
ls -1 '/Library/Java/JavaVirtualMachines'
info "$(ls -1 -l '/Library/Java/JavaVirtualMachines')"
}

main "${@}"

0 comments on commit 049de7b

Please sign in to comment.