--- scripts/update.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/scripts/update.sh b/scripts/update.sh index 1c750f6..d034c8f 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -6,17 +6,17 @@ set -e
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} + 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 + mkdir -p "$GLUONDIR/$module" + cd "$GLUONDIR/$module" git init
- if ! git branch -f base $commit 2>/dev/null; then - git fetch $repo $branch - git branch -f base $commit 2>/dev/null + if ! git branch -f base "$commit" 2>/dev/null; then + git fetch "$repo" "$branch" + git branch -f base "$commit" 2>/dev/null fi done -- 2.10.0