mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
ca1273e7d4
* Rename `asdf which` -> `asdf current` * Output `set by $path` with current command * Use dummy plugin in current_command test * Hide "set by" message if derived from legacy file
12 lines
202 B
Bash
Executable File
12 lines
202 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
get_legacy_version() {
|
|
current_directory=$1
|
|
version_file="$current_directory/.dummy-version"
|
|
|
|
if [ -f $version_file ]; then
|
|
cat $version_file
|
|
fi
|
|
}
|
|
|
|
get_legacy_version $1 |