Skip to content
Snippets Groups Projects
git-mirrors.sh 513 B
Newer Older
Sam Gleske's avatar
Sam Gleske committed
#!/bin/bash
Sam Gleske's avatar
Sam Gleske committed
#Created by Sam Gleske
#MIT License
#Created Tue Sep 10 23:01:08 EDT 2013
Sam Gleske's avatar
Sam Gleske committed

Sam Gleske's avatar
Sam Gleske committed
#Include all user options and dependencies
git_mirrors_dir="${0%/*}"
Sam Gleske's avatar
Sam Gleske committed
. "${git_mirrors_dir}/config.sh"
. "${git_mirrors_dir}/lib/VERSION"
. "${git_mirrors_dir}/lib/functions.sh"
Sam Gleske's avatar
Sam Gleske committed
cd "${git_mirrors_dir}"

ls -1 "${repo_dir}/${gitlab_namespace}" | while read mirror;do
  if ! ./update_mirror.sh "${mirror}" &> /dev/null;then
Sam Gleske's avatar
Sam Gleske committed
    red_echo "Error: ./update_mirror.sh ${mirror}" 1>&2
    STATUS=1
exit ${STATUS}