Skip to content

Commit 123267a

Browse files
authored
Merge pull request #303 from aws/revert-301-master
Revert "directly assigned buildspec path to docker command outside of path ch…"
2 parents 640ce35 + a7a8493 commit 123267a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

local_builds/codebuild_build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function usage {
4141
echo " * For sourceIdentifier, use a value that is fewer than 128 characters and contains only alphanumeric characters and underscores"
4242
echo " -c Use the AWS configuration and credentials from your local host. This includes ~/.aws and any AWS_* environment variables."
4343
echo " -p Used to specify the AWS CLI Profile."
44-
echo " -b FILE Used to specify a buildspec override file. Defaults to buildspec.yml in the source directory. Takes a relative path to the primary source directory"
44+
echo " -b FILE Used to specify a buildspec override file. Defaults to buildspec.yml in the source directory."
4545
echo " -m Used to mount the source directory to the customer build container directly."
4646
echo " -e FILE Used to specify a file containing environment variables."
4747
echo " (-e) File format expectations:"
@@ -121,7 +121,7 @@ fi
121121

122122
if [ -n "$buildspec" ]
123123
then
124-
docker_command+=" -e \"BUILDSPEC=$buildspec\""
124+
docker_command+=" -e \"BUILDSPEC=$(allOSRealPath $buildspec)\""
125125
fi
126126

127127
if [ -n "$environment_variable_file" ]
@@ -182,4 +182,4 @@ echo ""
182182
echo $exposed_command
183183
echo ""
184184

185-
eval $docker_command
185+
eval $docker_command

0 commit comments

Comments
 (0)