0

I am using the "whenever" Ruby gem and RVM to control my rubies/gemsets. When I try using whenever, I see the following error.

/bin/bash: not found
Anthony Mastrean
  • 21,850
  • 21
  • 110
  • 188
dansch
  • 6,059
  • 4
  • 43
  • 59
  • The version of RVM, Ruby, and the gem itself usually help when answering these questions. I see you have a good answer this time, though. Hope this helps in the future ;) – Anthony Mastrean Jun 11 '14 at 14:55

1 Answers1

1

It Appears the whenever gem has /bin/bash hardcoded

set :job_template, "/bin/bash -l -c ':job'"

Not all OS put bash in the same place.

It would appear that you are using an operating system where bash is not in /bin (probably in /usr/bin or /usr/local/bin)

You will need to update the job_template to match the location of bash or you could do

set :job_template, "bash -l -c ':job'"

To let the shell locate the correct version of bash for you.

Doon
  • 19,719
  • 3
  • 40
  • 44