Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Answering ml new warning with enter breaks.. #568

Closed
grtjn opened this issue Feb 19, 2016 · 1 comment
Closed

Answering ml new warning with enter breaks.. #568

grtjn opened this issue Feb 19, 2016 · 1 comment
Labels
Milestone

Comments

@grtjn
Copy link
Contributor

grtjn commented Feb 19, 2016

Running ml new from within Roxy folder is not recommended, the ml script detects that, and shows a warning. If you hit enter to accept the default you get something like:

$ ./ml new xxx
Running ml new from within a Roxy project is not recommended. Continue? [y/N] 

./ml: line 49: [: !=: unary operator expected

Creating new Application: xxx...
Cloning into 'xxx'...
remote: Counting objects: 4442, done.
remote: Total 4442 (delta 0), reused 0 (delta 0), pack-reused 4442
Receiving objects: 100% (4442/4442), 7.83 MiB | 1.26 MiB/s, done.
Resolving deltas: 100% (2596/2596), done.
Checking connectivity... done.
Required option --server-version=[version] not specified with valid value.

  What is the version number of the target MarkLogic server? [5, 6, 7, or 8]
ERROR: No such file or directory - xxx
ERROR: [".../xxx/deploy/lib/server_config.rb:286:in `gets'", ".../xxx/deploy/lib/server_config.rb:286:in `gets'", ".../xxx/deploy/lib/server_config.rb:286:in `prompt_server_version'", ".../xxx/deploy/lib/server_config.rb:188:in `init'", "deploy/lib/ml.rb:126:in `<main>'"]

$response needs to be wrapped in double quotes in the ml-script..

@grtjn grtjn added the bug label Feb 19, 2016
@grtjn grtjn added this to the 1.7.3 milestone Feb 19, 2016
@grtjn
Copy link
Contributor Author

grtjn commented Mar 11, 2016

I vaguely recall this was a one-line change. Pushing away nonetheless..

@grtjn grtjn modified the milestones: 1.7.4, 1.7.3 Mar 11, 2016
@dmcassel dmcassel modified the milestones: 1.7.5, 1.7.4 Oct 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants