Skip to content

Instantly share code, notes, and snippets.

@chihchun
Created November 21, 2019 07:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chihchun/9ea23da025ebbeb7f560405b193b1d6d to your computer and use it in GitHub Desktop.
Save chihchun/9ea23da025ebbeb7f560405b193b1d6d to your computer and use it in GitHub Desktop.
#!/bin/bash
repos="
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/dockers-for-somerville
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/image-build
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/jenkins-jobs
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/oem-credential
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/oem-kpitool
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/oem-release
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/oem-sanity
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/oem-tool
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/oemreport
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/somerville-conclusion
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/somerville-share-mirror
git+ssh://git.launchpad.net/~lyoncore-team/lyoncore/+git/somerville_maas_installer
"
for repo in ${repos} ; do
name=$(basename $repo)
set -x
if [ -d $name ] ; then
cd ${name}
git fetch -v -a
cd ..
else
git clone ${repo}
fi
set +x
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment