Skip to content

Update edge.sh#1

Open
gfjardim wants to merge 1 commit intoneedo37:masterfrom
gfjardim:patch-1
Open

Update edge.sh#1
gfjardim wants to merge 1 commit intoneedo37:masterfrom
gfjardim:patch-1

Conversation

@gfjardim
Copy link
Copy Markdown
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