Advertisement
Guest User

Untitled

a guest
Sep 24th, 2012
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. # stupid loop to get around ubuntu package mirror problems
  2. for attempt in 1 2 3; do
  3. if [ ! -z "`which git`" ]; then
  4. break
  5. fi
  6. echo "Trying to install git, attempt $attempt"
  7. sudo apt-get update -yq --fix-missing -o "Debug::Acquire::Http=True"
  8. sudo apt-get install -yq git -o "Debug::Acquire::Http=True"
  9. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement