#!/usr/bin/env bash

get_legacy_version() {
  current_directory=$1
  exenv_version_file="$current_directory/.exenv-version"

  # Get version from .exenv-version file. It is used by exenv.
  if [ -f "$exenv_version_file" ]; then
    cat "$exenv_version_file"
  fi
}

get_legacy_version "$1"
