We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2960ad3 + 3a3f015 commit 971cbe2Copy full SHA for 971cbe2
utils/README.rst
@@ -0,0 +1,5 @@
1
+utils
2
+#####
3
+
4
+This directory holds convenience and utility scripts that might be useful to
5
+users of devstack, but have no other home in source control.
utils/pull-all-repos-in-directory.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+################
+sync_directory() {
6
+ IFS=$'\n'
7
8
+ for REPO in `ls "$1/"`
9
+ do
10
+ if [ -d "$1/$REPO" ]
11
+ then
12
+ echo "Updating $1/$REPO at `date`"
13
+ if [ -d "$1/$REPO/.git" ]
14
15
+ git -C "$1/$REPO" pull
16
+ else
17
+ sync_directory "$1/$REPO"
18
+ fi
19
+ echo "Done at `date`"
20
21
+ done
22
+}
23
24
+REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
25
26
+sync_directory $REPOSITORIES
27
0 commit comments