I am receiving the following error when I run the setup for AWSDevTools inside my git repo.
[[: not found
cp: cannot stat
/home/user/aws/.git/scripts': No such file or directory`
I copied the scripts folder from the AWSDevTools .zip directly to the git repo and then received this error:
[[: not found
cp: cannot create directory
.git/AWSDevTools': No such file or directory`
copied AWSDevTools from .zip to the repository as well thinking the installer just wanted these folders in the repo to run but I continued to receive the same directory error. Any help would be great.
Assume your repo is at /home/user/aws/
(.git
folder inside),
Your AWSDevTools are at /home/user/AWS-ElasticBeanstalk-CLI-2.3/AWSDevTools/Linux
Then you should be able to follow these steps:
1) Open a command prompt, cd
to /home/user/aws
(your repo)
2) Run /home/user/AWS-ElasticBeanstalk-CLI-2.3/AWSDevTools/Linux/AWSDevTools-RepositorySetup.sh
.
3) git aws.config
4) Enter AWS details
Then you can git add
, git commit
, and git aws.push
. Let me know what error you get with these steps.
来源:https://stackoverflow.com/questions/14324724/setup-awsdevtools-repositorysetup-sh-in-git-repository-on-ubuntu