#!/bin/bash set -e . "$GLUONDIR"/scripts/modules.sh for module in $GLUON_MODULES; do echo "--- Updating module '$module' ---" var=$(echo $module | tr '[:lower:]/' '[:upper:]_') eval repo=\${${var}_REPO} eval branch=\${${var}_BRANCH} eval commit=\${${var}_COMMIT} mkdir -p "$GLUONDIR"/$module cd "$GLUONDIR"/$module git init git config commit.gpgsign false git branch -f base $commit 2>/dev/null || git fetch -f $repo $branch:base done