diff options
author | Ryan Arnold <ryan.arnold@linaro.org> | 2015-11-19 16:09:49 +0000 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2015-11-19 16:09:49 +0000 |
commit | 66765aa7abf337c45db78e8d4e236dce52992e6a (patch) | |
tree | a44f36cecbb27019f7ca3ad9a0138a370e7813be | |
parent | bff335b15ab17f80d958e1c519d52ef23a2745e0 (diff) | |
parent | c4f42b6f7ebf4c33ab7b1a36eca4df9a40e1b7f3 (diff) |
Merge "update-snapshots-ref.sh: Fix initialization of non-existent reference snapshots"
-rwxr-xr-x | scripts/update-snapshots-ref.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/update-snapshots-ref.sh b/scripts/update-snapshots-ref.sh index ff349734..8580ac75 100755 --- a/scripts/update-snapshots-ref.sh +++ b/scripts/update-snapshots-ref.sh @@ -63,9 +63,9 @@ generate_snapshots () } update_git_repos () { - for repo in ${snapshots_dir}-new/*.git; do + for repo in `ls ${snapshots_dir}-new/ | grep "\.git\$"`; do ( - cd $repo + cd ${snapshots_dir}-new/$repo # Update and prune local clone git remote update -p # Cleanup stale branches @@ -75,6 +75,7 @@ update_git_repos () { } if $generate; then + mkdir -p ${snapshots_dir}-new update_git_repos generate_snapshots |