From: yury Date: Thu, 17 Mar 2005 08:50:46 +0000 (+0000) Subject: - added check for existing TAG file before catting it X-Git-Tag: 1.3.4~51 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=5be0be72107f329caec160df3835ab377e8dee2c;p=fs%2Flustre-release.git - added check for existing TAG file before catting it --- diff --git a/build/branch.sh b/build/branch.sh index 64c702e..023a3f1 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" && test -f $dir/CVS/Tag && "`cat $dir/CVS/Tag`" != "T$parent"; then echo "This script must be run within the $parent branch" exit 1 fi