Skip to content
This repository
tag: 1.17.0
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 27 lines (24 sloc) 0.556 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#!/usr/bin/env bash

function rake_not_found()
{
  printf "%b" "$(tput setaf 1)ERROR: Gem rake is not installed, run \`gem install rake\` first.$(tput sgr0)\n"
  exit 127
}

# in rvm warn about missing gem
if [[ -n "${GEM_HOME:-}" ]]
then
rake_not_found
else
current_rake="$(dirname $(which $0))"
  export PATH
  PATH=":${PATH}:"
  PATH="${PATH//:${current_rake}:/:}"
  PATH="${PATH#:}"
  PATH="${PATH%:}"
  if [[ -n "${current_rake}" ]] && builtin command -v rake >/dev/null 2>&1
  then
builtin command rake "$@"
  else
rake_not_found
  fi
fi
Something went wrong with that request. Please try again.