chiark / gitweb /
bail out if system load is >= 5
[bin.git] / baz-update-config
index 6eadf04fedbc1f0b86dd565c2f58b74e319dab8b..6a45d910f1ba70a402af562db55976456898b7eb 100755 (executable)
@@ -12,7 +12,7 @@ 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"
@@ -21,7 +21,7 @@ for line in $(baz cat-config "$1"); do
        echo "Updating $DIR ($VERSION) ..."
 
        case $VERSION in
-               http://*)
+               bzr+ssh://*|http://*|sftp://*)
                        if [ -d "$DIR" ]; then
                                if [ ! -d "$DIR/.bzr" ]; then
                                        echo "$DIR is not a bzr checkout; cannot update" >&2