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

missing argument to `-exec' #17015

Closed
1 of 4 tasks
kaziii opened this issue May 15, 2023 · 2 comments
Closed
1 of 4 tasks

missing argument to `-exec' #17015

kaziii opened this issue May 15, 2023 · 2 comments

Comments

@kaziii
Copy link

kaziii commented May 15, 2023

Current Behavior

I want to use custom commands to configure a project, but I encountered a bug

$ npx nx run projectname:setting --name=xxx

> nx run projectname:setting --name=xxx

find: missing argument to `-exec'
Warning: run-commands command "find tools/setting/ -name 'xxx.json' -exec cp {} dist/apps/projectname/setting.json \;" exited with non-zero status code

Expected Behavior

run successfully

GitHub Repo

No response

Steps to Reproduce

project.json

{
targets: {
   ...,
   custom_commed: {
      "executor": "nx:run-commands",
      "options": {
        "command": "find tools/setting/ -name '{args.name}.json' -exec cp {} dist/apps/projectname/setting.json \\;"
      }
  }
 }
}

Nx Report

find: missing argument to `-exec'
Warning: run-commands command "find tools/setting/ -name 'songluo.json' -exec cp {} dist/apps/songluo-re/setting.json \;" exited with non-zero status code

Failure Logs

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@AgentEnder AgentEnder added the scope: misc Misc issues label May 16, 2023
Copy link

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs.
If we missed this issue please reply to keep it active.
Thanks for being a part of the Nx community! 🙏

Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants