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 6eadf04fedbc1f0b86dd565c2f58b74e319dab8b..5949047822840f508cbaae273b05d9b1987bb2ea 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"