Skip to content

Commit 146ad8c

Browse files
authored
Relative path fix for background jobs
if you require the sendgrid-php.php (Non-composer version) in a background process you would have relative path problems. Full path solves this problem.
1 parent 46f85e6 commit 146ad8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/s3upload.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GIT_VERSION=`git rev-parse --short HEAD`
77

88
rm -rf vendor composer.lock
99
composer install --no-dev
10-
printf "<?php\nrequire 'vendor/autoload.php';\n?>" > sendgrid-php.php
10+
printf "<?php\nrequire __DIR__ . '/vendor/autoload.php';\n?>" > sendgrid-php.php
1111
cd ..
1212
zip -r sendgrid-php.zip sendgrid-php -x \*.git\* \*composer.json\* \*scripts\* \*test\* \*.travis.yml\*
1313

0 commit comments

Comments
 (0)