Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbtek committed Dec 2, 2019
1 parent aa0b281 commit a51df48
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cookbooks/java/recipes/post-install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ 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'
appendToFileIfNotFound \
'/etc/profile' \
"${javaHomeConfig}" \
"${javaHomeConfig}" \
'false' \
'false' \
'true'

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

Expand Down

0 comments on commit a51df48

Please sign in to comment.