Skip to content
Browse files

Merge pull request #56 from freerange/fully-qualify-path-to-env-and-r…

…ecap-env-export

Ensure ~/.recap can be sourced from anywhere
  • Loading branch information...
2 parents f3164d2 + 5ee11b3 commit c4baebd88415d7d236a9288c2f517b392f235d31 @tomafro tomafro committed May 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/recap/tasks/bootstrap.rb
View
4 lib/recap/tasks/bootstrap.rb
@@ -41,7 +41,7 @@ module Recap::Tasks::Bootstrap
# a new copy with `export ` prefixed to each line, and sources this new copy.
put_as_app %{
if [ -s "$HOME/.env" ]; then
- sed -e 's/\\r//g' -e 's/^/export /g' .env > .recap-env-export
+ sed -e 's/\\r//g' -e 's/^/export /g' $HOME/.env > $HOME/.recap-env-export
. $HOME/.recap-env-export
fi
}, "#{application_home}/.recap"
@@ -74,4 +74,4 @@ module Recap::Tasks::Bootstrap
user
end
end
-end
+end

0 comments on commit c4baebd

Please sign in to comment.
Something went wrong with that request. Please try again.