2

The is following part of bash script I wrote to automate adding users and save them to SVN.

cd $workdir
svn add --username $u .first_$myuser
svn ci --username $u work_place1 work_place2 .first_$myuser

The script works fine but I am facing the following problem, when I try to execute the script a nano window will appear contains

--This line, and those below, will be ignored--

A .first_$myuser

I enter Ctrl+X then enter C to continue and everything works like charm. My question is there a way to add a hidden file without this pop up window, if not how can I automate my script to enter Ctrl+X and C without exiting the script itself.

3

You have to pass a log message to svn ci and commit commands.

If you fail to specify either the --message (-m) or --file (-F) option, 
Subversion will automatically launch your favorite editor for composing 
a log message.

See Commit Your Changes paragraph of Version Control with Subversion book for some examples.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.