asdf/test/fixtures/dummy_plugin/bin/get-version-from-legacy-file
Kevin Rockwood ca1273e7d4 Rename which to current (#79)
* 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
2016-07-25 00:47:17 +09:00

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