We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23a08ee commit d114e8dCopy full SHA for d114e8d
1 file changed
bin/idea.sh
@@ -187,14 +187,18 @@ fi
187
SOURCE_PREFIX="<sourceFolder url=\"file://"
188
SOURCE_POSTFIX="\" isTestSource=\"false\" />"
189
190
+# SOURCES is a single string containing embeded newlines.
191
for root in $MODULE_ROOTS; do
192
if [ "x$CYGPATH" != "x" ]; then
193
root=`$CYGPATH -am $root`
194
elif [ "x$WSL_DISTRO_NAME" != "x" ]; then
195
root=`wslpath -am $root`
196
fi
-
197
- SOURCES=$SOURCES" $SOURCE_PREFIX""$root""$SOURCE_POSTFIX"
+ # Add line termination/indentation for everything after the first entry.
198
+ if [ "x$SOURCES" != "x" ]; then
199
+ SOURCES="${SOURCES}\n "
200
+ fi
201
+ SOURCES="${SOURCES}${SOURCE_PREFIX}${root}${SOURCE_POSTFIX}"
202
done
203
204
add_replacement "###SOURCE_ROOTS###" "$SOURCES"
0 commit comments