cp command not working in Bash Script in build pipeline of azure devops

0 votes

To copy the folder with multiple files to another folder in the build pipeline I use:

cp -R -v pathToSourceFolder pathToDestFolder

cp -R -v   /Users/runner/runners/2.166.4/work/1/s/en.lproj/  /Users/runner/runners/2.166.4/work/1/s/platforms/ios/AppName/Resources

But getting error with exit code 126:

usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvXc] source_file ... target_directory

Any help would be appreciated.

Apr 22, 2022 in Other DevOps Questions by Kichu
• 19,050 points
840 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
1 answer

Command not working in .bat script but works in CLI

powershell /? If you run the above command ...READ MORE

answered Jul 19, 2018 in Other DevOps Questions by ajs3033
• 7,300 points
1,320 views
0 votes
0 answers
0 votes
0 answers
0 votes
0 answers

How to YML Schedule build in Azure DevOps Pipeline

I have an existing pipeline created in ...READ MORE

Mar 28, 2022 in Other DevOps Questions by Kichu
• 19,050 points
984 views
0 votes
0 answers

unable to install mcafee-epo from azure devops

When I run the command 'pip install ...READ MORE

Mar 20, 2022 in Other DevOps Questions by Kichu
• 19,050 points
314 views
0 votes
0 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP