mirror of
https://github.com/jenv/jenv.git
synced 2026-05-04 05:07:20 +01:00
12 lines
311 B
Bash
Executable File
12 lines
311 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Summary: Show the current Java version and its origin
|
|
#
|
|
# Shows the currently selected Java version and how it was
|
|
# selected. To obtain only the version string, use `jenv
|
|
# version-name'.
|
|
|
|
set -e
|
|
[ -n "$JENV_DEBUG" ] && set -x
|
|
|
|
echo "$(jenv-version-name) (set by $(jenv-version-origin))"
|