ruby on rails - .rvmrc syntax error -


i trying work web app made else. cloned repo , when cd'ed it, .rvmrc executed. getting following error in it:

: command not found : command not found : command not found : command not found -bash: /home/sleepingdragon/desktop/sharedcab/main-apps/ytaxi-apps/ytaxi/.rvmrc: line 22: syntax error in conditional expression -bash: /home/sleepingdragon/desktop/sharedcab/main-apps/ytaxi-apps/ytaxi/.rvmrc:'line 23: syntax error near `]] -bash: /home/sleepingdragon/desktop/sharedcab/main-apps/ytaxi-apps/ytaxi/.rvmrc:'line 23: `  && -s "${rvm_path:-$home/.rvm}/environments/$environment_id" ]] 

the .rvmrc file this:

#!/usr/bin/env bash  # rvm project .rvmrc file, used automatically load ruby # development environment upon cd'ing directory  # first specify our desired <ruby>[@<gemset>], @gemset name optional, # full ruby name supported here, short names use: #     echo "rvm use 1.9.3" > .rvmrc environment_id="ruby-1.9.3-p194@ytaxi"  # uncomment following lines if want verify rvm version per project # rvmrc_rvm_version="1.14.2 (stable)" # 1.10.1 seams safe start # eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -f. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || { #   echo "this .rvmrc file requires @ least rvm ${rvmrc_rvm_version}, aborting loading." #   return 1 # }  # first attempt load desired environment directly environment # file. fast , efficient compared running through entire # cli , selector. if want feedback on environment used # insert word 'use' after --create triggers verbose mode. if [[ -d "${rvm_path:-$home/.rvm}/environments"   && -s "${rvm_path:-$home/.rvm}/environments/$environment_id" ]]   \. "${rvm_path:-$home/.rvm}/environments/$environment_id"   [[ -s "${rvm_path:-$home/.rvm}/hooks/after_use" ]] &&     \. "${rvm_path:-$home/.rvm}/hooks/after_use" || true   if [[ $- == *i* ]] # check interactive shells   echo "using: $(tput setaf 2)$gem_home$(tput sgr0)" # show user ruby , gemset using in green   else echo "using: $gem_home" # don't use colors in non-interactive shells   fi else   # if environment file has not yet been created, use rvm cli select.   rvm --create use  "$environment_id" || {     echo "failed create rvm environment '${environment_id}'."     return 1   } fi  # if use bundler, might useful you: # if [[ -s gemfile ]] && { #   ! builtin command -v bundle >/dev/null || #   builtin command -v bundle | grep_options= \grep $rvm_path/bin/bundle >/dev/null # } # #   printf "%b" "the rubygem 'bundler' not installed. installing now.\n" #   gem install bundler # fi # if [[ -s gemfile ]] && builtin command -v bundle >/dev/null # #   bundle install | grep_options= \grep -ve '^using|your bundle complete' # fi 

i have not worked .rvmrc before , rails noob. me find error?

just create .ruby-version file containing

ruby-1.9.3-p194@ytaxi 

and delete .rvmrc file.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -