Forum: Ruby on Rails Making SwitchTower work with csh (and other non-posix shells

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
42172acdf3c6046f84d644cb0b94642c?d=identicon&s=25 Pat Maddox (pergesu)
on 2006-03-02 10:53
(Received via mailing list)
I tried using ST, but it didn't work with the csh shell.  Today I
decided to make it work, and came up with the very simple solution of
wrapping the failed commands inside a bash instance.  Blog post is
http://www.flpr.org/articles/2006/03/02/make-switc...

Solution (so you don't have to read the blog post :) is to edit
$gems_dir/switchtower-1.0.1/lib/switchtower/scm/base.rb (line 34) to
read:

command = <<-STR
  /usr/local/bin/bash -c
  'if [[ ! -d #{configuration.release_path} ]]; then
    #{guts}

    #{logging_commands(directory)}
  fi'
STR



So if you want to use SwitchTower along with csh, now you can.

Pat
This topic is locked and can not be replied to.