X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=build%2Fbranch.sh;h=b64681ff13686d08d2a62bc731ef653e2b665cf7;hb=a086cd9ddeabcc8f36ac6eca199a20cfdb613518;hp=64c702e39a93e60c946cbd91c673bb367fb40dcf;hpb=cbb454150790aceec1153749302cb6e8f4449f1d;p=fs%2Flustre-release.git diff --git a/build/branch.sh b/build/branch.sh index 64c702e..b64681f 100755 --- a/build/branch.sh +++ b/build/branch.sh @@ -31,7 +31,7 @@ case $child in *) child="b_$child" esac -if [ "$parent" != "HEAD" -a "`cat $dir/CVS/Tag`" != "T$parent" ]; then +if test "$parent" != "HEAD" -a -f $dir/CVS/Tag -a "`cat $dir/CVS/Tag`" != "T$parent"; then echo "This script must be run within the $parent branch" exit 1 fi