Skip to content

Commit 547170f

Browse files
committed
KSPCommon.targets:
-add quotes to KSPRoot -suppress running CKAN if there are no dependencies
1 parent 3f37213 commit 547170f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

KSPCommon.targets

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@
3636

3737
<ItemGroup>
3838
<!-- Not using `ckan compat set` because as of 2024-08-16 it is still only available in the dev branch -->
39-
<_CKANCommands Include="compat add --gamedir $(KSPROOT) %(_CKANCompatibleVersionItems.Identity)"
39+
<_CKANCommands Include="compat add --gamedir &quot;$(KSPROOT)&quot; %(_CKANCompatibleVersionItems.Identity)"
4040
Condition=" '$(CKANCompatibleVersions)' != '' "/>
4141

42-
<_CKANCommands Include="install --no-recommends --gamedir $(KSPROOT) $(_CKANDependencyList)"
43-
Condition=" '$(_CKANDependencyList)' != '' "/>
42+
<_CKANCommands Include="install --no-recommends --gamedir &quot;$(KSPROOT)&quot; $(_CKANDependencyList)"/>
4443
</ItemGroup>
4544

4645
<Message Text="Writing CKAN commands to $(_CKANCommandFile)"/>
4746
<Message Text="@(_CKANCommands, '\n')" Importance="Low"/>
4847
<WriteLinesToFile File="$(_CKANCommandFile)" Lines="@(_CKANCommands)"/>
49-
<Exec Command="cat '$(_CKANCommandFile)' | ckan prompt --headless"/>
48+
<Exec Command="cat '$(_CKANCommandFile)' | ckan prompt --headless"
49+
Condition="'$(_CKANDependencyList)' != '&quot;&quot;'"/>
5050
<RemoveDir Directories="$(_TempStagingFolder)"/>
5151
</Target>
5252

0 commit comments

Comments
 (0)