~charles/asdf-rq

aa99df3f59f8ca300e757557807af820e118967f — Charles A. Daniels 1 year, 5 months ago 049dc20
handle versions with leading v stripped
1 files changed, 4 insertions(+), 0 deletions(-)

M lib/utils.bash
M lib/utils.bash => lib/utils.bash +4 -0
@@ 60,6 60,10 @@ download_sources() {
  local version="$1"
  local source_path="$2"

  if !echo "$version" | grep '^v.*' ; then
    version="v$version"
  fi

  mkdir -p "$source_path"
  git clone --branch "$version" "$GIT_REPO" "$source_path"
}