From 13a2f5b44c16e5714a5c8c4305e5d90a5ddd7c76 Mon Sep 17 00:00:00 2001 From: Patrick Copeland Date: Mon, 2 May 2016 12:36:38 +1200 Subject: [PATCH] Attempt SSH, then HTTPS if GIT protocol fails --- bin/pgvm-self-install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/pgvm-self-install b/bin/pgvm-self-install index 97f1112..a472fbb 100755 --- a/bin/pgvm-self-install +++ b/bin/pgvm-self-install @@ -28,7 +28,9 @@ clone_repo() { echo echo -n "wait while the installer fetches pgvm's files ..." - git clone git://github.com/guedes/pgvm.git $pgvm_home > /dev/null 2>&1 || { + git clone git://github.com/guedes/pgvm.git $pgvm_home > /dev/null 2>&1 || + git clone git@github.com:guedes/pgvm.git $pgvm_home > /dev/null 2>&1 || + git clone https://github.com/guedes/pgvm.git $pgvm_home > /dev/null 2>&1 || { echo "sorry, pgvm could not be installed" && exit 1 }