|
Strange issue with if/test bash commands: msg#00182lang.ruby.capistrano.general
Hi, I ran in to this issue a few months back and found a workaround but hitting this again I just thought I would ask here and see if someone has an explanation for this... This works: disable_services.each do |service| run <<-CMD if [ -x '/etc/init.d/#{service}' ];then chkconfig --level 345 #{service} off; fi CMD end This fails half way through the loop: disabled_services.each do |service| run "[[ -x '/etc/init.d/#{service}' ]] && (chkconfig -- level 345 #{service} off;)" end ?? |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: scm tasks able to use tags?: 00182, Andrew Stewart |
|---|---|
| Next by Date: | Uploading large goes no where: 00182, Manish |
| Previous by Thread: | scm tasks able to use tags?i: 00182, brian doll |
| Next by Thread: | Uploading large goes no where: 00182, Manish |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |