@@ 254,12 254,13 @@ function run_new () {
done
if test x"${ARG_LANG}" = x"?"; then
- (cd "${TEMPLATES}" ; ls -d */ | grep -v -- "--" | sed s,/,,g)
+ (cd "${TEMPLATES}" ; ls -d */ | grep -v -- "--" | sed s,/,,g | xargs)
exit 0
- if test x"${ARG_VCS}" = x"?"; then
- (cd "${TEMPLATES}" ; ls -d vcs--*/ | sed s/vcs--// | sed s,/,,g)
+ elif test x"${ARG_VCS}" = x"?"; then
+ (cd "${TEMPLATES}" ; ls -d vcs--*/ | sed s/vcs--// | sed s,/,,g | xargs)
exit 0
-
+ fi
+
if test x"${PROJ}" = x""; then
if test x"${1}" = x"/"; then
echo "project name / is forbidden"