info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

log message verification


From: pad_123
Subject: log message verification
Date: Tue, 05 Dec 2000 22:37:46 -0000
User-agent: eGroups-EW/0.82

Hi all,

I am having a problem.I want to check that a log msg is entered 
before commit.For this I want to check that the log msg is not null.

I have the following line in verifymsg

src /usr/cvssupport/verify.log

and in verify.log I have the following script
_________________________________________________
msg = `head -1`

if [ "$msg" = '' ];
 then
echo "No log message was entered;enter a log message and try again"
exit 1
else
echo "Commit Success"
exit 0
fi       
__________________________________________________
But this is aborting the commit even when a msg is entered.Am I doing 
this correctly?will the firstline in the code above get the log msg 
into the variable msg?Else how do I get the log message into that 
variable?? Pls help.

Thanks a lot,
Paddy Thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]