我是一个新人 当它涉及到linux 和特别 冲击性脚本。
基本上,我想做的是(在一些混合狂欢/假代码中)
for entry in `svn list https://svn.xxx.../projects`
if already checked out
then
svn up https://svn.xxx.../projects/$entry some/local/path
else
svn co https://svn.xxx.../projects/$entry some/local/path
fi
... other stuff ...
done
My problem is that unfortunately some of our projects contains spaces in their names. I managed to do some assembling of the entry parts but when executing the subversion command the spaces in the url became escaped. E.g.
svn co "https://svn.xxx.../projects/$myassembly" some/local/path
成为
svn co https://svn.xxx.../projects/Project%20With%20Space some/local/path
无法找到 URL 。
任何帮助我解决此事的帮助我都会感激不尽 谢谢