Thanks a lot. I am a newbie to shell script. I appreciate your help.
On 25 Jun 2015 13:45, "Branko Čibej" wrote:
> On 25.06.2015 10:10, Dhiraj Prajapati wrote:
>
> Below is the code snippet I am using. I need the file contents in a
> variable.
>
>
> *fileContents=`$SVNLOOK cat $REPOS $FNAME -t
d make the command print:
contents: $fileContents
which is not what he wants ...
> *From:* Dhiraj Prajapati [mailto:dhiraj.prajap...@games24x7.com]
>
> *Sent:* Thursday, June 25, 2015 1:10 AM
> *To:* Branko Čibej
> *Cc:* users@subversion.apache.org
> *Subject:* Re: Facing
: Branko Čibej
Cc: users@subversion.apache.org
Subject: Re: Facing issue in SVN pre commit hook | svnlook cat
Below is the code snippet I am using. I need the file contents in a variable.
fileContents=`$SVNLOOK cat $REPOS $FNAME -t $TXN`
echo "contents:" $fileContents 1>&2
Am I doi
On 25.06.2015 10:10, Dhiraj Prajapati wrote:
> Below is the code snippet I am using. I need the file contents in a
> variable.
>
> *fileContents=`$SVNLOOK cat $REPOS $FNAME -t $TXN`
> *
> *echo "contents:" $fileContents 1>&2*
>
> Am I doing anything wrong?
Yes of course you are. You really should
Below is the code snippet I am using. I need the file contents in a
variable.
*fileContents=`$SVNLOOK cat $REPOS $FNAME -t $TXN`*
*echo "contents:" $fileContents 1>&2*
Am I doing anything wrong?
-Dhiraj
On Thu, Jun 25, 2015 at 1:37 PM, Branko Čibej wrote:
> On 25.06.2015 09:31, Dhiraj Praja
On 25.06.2015 09:31, Dhiraj Prajapati wrote:
> Hi,
> I have a pre-commit hook which validates the contents of the files
> being committed before commit.
> I am using /svnlook cat/ command to read the contents of the file
> being committed.
> However, whenever there is a leading slash on a particula
Hi,
I have a pre-commit hook which validates the contents of the files being
committed before commit.
I am using *svnlook cat* command to read the contents of the file being
committed.
However, whenever there is a leading slash on a particular line in the
file, the *svnlook cat* command fails to di