Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build.ps1 script failing when spaces exist in source path #2121

Merged
merged 1 commit into from
Oct 7, 2017

Conversation

ayan4m1
Copy link
Contributor

@ayan4m1 ayan4m1 commented Sep 29, 2017

Currently, if there are spaces in the path to the CKAN source (e.g. C:\Users\First Last\CKAN), running build.ps1 fails with:

C:\Users\First : The term 'C:\Users\First' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and tr
again.
At line:1 char:1
+ C:\Users\First Last\CKAN/_build/tools/NuGet/4.1.0/nuget.exe instal ...
+ ~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\First:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Adding an ampersand to the nuget and cake invocations fixes these errors.

@politas politas requested a review from dbent October 4, 2017 08:00
@Olympic1 Olympic1 added Build Issues affecting the build system Pull request labels Oct 5, 2017
@politas politas merged commit 8805870 into KSP-CKAN:master Oct 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Issues affecting the build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants