I need to run a SVN update in script create in bash but it fails. Can please you help to find out what am I doing wrong?
Script:
echo SVN Update
alias svn="cd C/Program Files/TortoiseSVN/bin"
START TortoiseProc.exe /command:update /path:"cd C/CCUE" /closeonend:0
Error in output:
+echo SVN $'Update\r'
SVN Update
' alias 'svn=cd C/Program Files/TortoiseSVN/bin
+ START TortoiseProc.exe /command:update '/path:cd C/CCUE' $'/closeonend:0\r' - line 7: START: command not found
Defining an alias for a directory change is not the same as executing that directory change. Also changing directory is not a good idea since then TortoiseProc would not know what directory you want to update.
I’d recommend using
TortoiseProc.exefull path or puttingTortoiseSVN/binin PATH.The error could be caused also by
bashnot findingSTART.EXE.I was able to invoke by hand TortosieProc without
STARTusing the following lineNotice how the
pathparameter has to be invoked by TortoiseProc and therefore has to follow Windows syntax. TortoiseProc complained if I used a UNIX style for the path.Tested on
cygwin, Windows 7, TortoiseSVN 1.7