chiark / gitweb /
cope with running in a bzr checkout
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 15 May 2006 15:51:11 +0000 (15:51 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Mon, 15 May 2006 15:51:11 +0000 (15:51 +0000)
baz-update-config

index 6eadf04..5949047 100755 (executable)
@@ -12,7 +12,7 @@ NEWLINE='
 
 IFS_SAVE="$IFS"
 IFS="$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"
        IFS="$IFS_SAVE"
        set -- $line
        DIR="$1"