chiark / gitweb /
cope with running in a bzr checkout
[bin.git] / baz-update-config
index 922b75a1b434e5b2b4542433d693a303045b6d80..5949047822840f508cbaae273b05d9b1987bb2ea 100755 (executable)
@@ -12,12 +12,14 @@ NEWLINE='
 
 IFS_SAVE="$IFS"
 IFS="$NEWLINE"
-for line in $(baz cat-config "$1"); do
+for line in $(baz cat-config "$1" 2>/dev/null || cat "$1"); do
        IFS="$IFS_SAVE"
        set -- $line
        DIR="$1"
        VERSION="$2"
 
+       echo "Updating $DIR ($VERSION) ..."
+
        case $VERSION in
                http://*)
                        if [ -d "$DIR" ]; then