Skip to content

Commit

Permalink
change symlink command to a nice one liner for detecting if the direc…
Browse files Browse the repository at this point in the history
…tory exists
  • Loading branch information
asceth committed May 15, 2012
1 parent c40c868 commit fe4f826
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ors/commands/symlink.rb
Expand Up @@ -12,9 +12,7 @@ def execute
execute_in_parallel(ORS.config[:ruby_servers]) do |server|
execute_command(server,
prepare_environment,
%(cd config/deploy),
%(for i in `find ./ -type f`; do ln -s `pwd`/$i ../../$i; done),
%(cd ../..),
%(if [ -f config/deploy/#{ORS.config[:environment]} ]; then cd config/deploy/#{ORS.config[:environment]}; for i in `find ./ -type f`; do ln -s `pwd`/$i ../../$i; done; cd ../../..; fi),
:exec => true)

end
Expand Down

0 comments on commit fe4f826

Please sign in to comment.