From cd6be4c9c582e5f9a095ef817dbeaa2c96458337 Mon Sep 17 00:00:00 2001 From: Mathy Date: Sun, 26 Apr 2015 11:57:50 -0400 Subject: [PATCH] init.sh: use public protocol as default --- init.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/init.sh b/init.sh index 04be501..d35cf61 100755 --- a/init.sh +++ b/init.sh @@ -1,8 +1,14 @@ #!/bin/bash trap "killall background" EXIT -git clone -b master git@github.com:vanhoefm/modwifi.git modwifi & -git clone -b research git@github.com:vanhoefm/modwifi-linux.git linux & -git clone -b research git@github.com:vanhoefm/modwifi-ath9k-htc.git ath9k-htc & -git clone -b research git@github.com:vanhoefm/modwifi-backports.git backports & -git clone -b master git@github.com:vanhoefm/modwifi-tools.git tools & + +PROTOCOL="https://github.com/" +if [[ $# -eq 1 ]]; then + PROTOCOL="git@github.com:" +fi + +git clone -b master ${PROTOCOL}vanhoefm/modwifi.git modwifi & +git clone -b research ${PROTOCOL}vanhoefm/modwifi-linux.git linux & +git clone -b research ${PROTOCOL}vanhoefm/modwifi-ath9k-htc.git ath9k-htc & +git clone -b research ${PROTOCOL}vanhoefm/modwifi-backports.git backports & +git clone -b master ${PROTOCOL}vanhoefm/modwifi-tools.git tools & wait