Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update edge.sh #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update edge.sh #1

wants to merge 1 commit into from

Conversation

gfjardim
Copy link
Contributor

@gfjardim gfjardim commented Aug 3, 2014

Better edge function:

  1. will try to clone the repository to a temp dir;
  2. if it succeed, will erase the install dir and move the temp dir to it's place;
  3. will create a /tmp/edge_installed, so the source can be updated by a simple git pull;
  4. if the clone fails, will remove the temp dir, leaving the current version intact.

This will avoid internet timeout problems and will make the source update faster.

Better edge function:
1) will try to clone the repository to a temp dir;
2) if it succeed, will erase the install dir and move the temp dir to it's place;
3) will create a /tmp/edge_installed, so the source can be updated by a simple git pull;
4) if the clone fails, will remove the temp dir, leaving the current version intact.

This will avoid internet timeout problems and will make the source update faster.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant