azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

Postprovision hook fails if repository is cloned to a path containing spaces

Open amithkk opened this issue 1 year ago • 1 comments

This issue is for a: (mark with an x)

- [x] bug report 
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  • Clone the repository to a path with spaces (example - C:\Ex Path\azure-openai-search) with azd init -t azure-search-openai-demo
  • Run azd up. Observe that the post-provision script fails

Any log messages given by the failure

  • prepdocs.py: error: unrecognized arguments: Path\azure-openai-search/data/*

Expected/desired behavior

  • Sample works when cloned to a path with spaces

OS and Version?

Windows 11

Additional comments

This is caused due to the $cwd variable not being quoted in the powershell launch script

amithkk avatar Mar 30 '23 11:03 amithkk

This is still a problem

jmasengeshomsft avatar May 05 '23 21:05 jmasengeshomsft