Permalink
Browse files

fixed bad instruction (fails on some servers)

  • Loading branch information...
everzet committed Jun 11, 2010
1 parent c088753 commit 93154ab0e130b460f00bccb6b197b87d31a05805
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/capifony.rb
View
@@ -50,7 +50,7 @@ def load_database_config(data, env = 'prod')
task :create_dirs do
if shared_children
shared_children.each do |link|
- run "test -d #{release_path}/#{link} && rm -rf #{release_path}/#{link}"
+ run "if [ -d #{release_path}/#{link} ] ; then rm -rf #{release_path}/#{link}; fi"
run "mkdir -p #{shared_path}/#{link}"
run "ln -nfs #{shared_path}/#{link} #{release_path}/#{link}"
end

0 comments on commit 93154ab

Please sign in to comment.