Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
4f34e6bf
Commit
4f34e6bf
authored
Aug 31, 2018
by
Joe Kutner
Committed by
Jeremy Morrell
Aug 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only write export script if dir is writable (#539)
parent
25310973
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
environment.sh
lib/environment.sh
+8
-2
No files found.
lib/environment.sh
View file @
4f34e6bf
...
@@ -73,6 +73,12 @@ write_ci_profile() {
...
@@ -73,6 +73,12 @@ write_ci_profile() {
write_export
()
{
write_export
()
{
local
bp_dir
=
"
$1
"
local
bp_dir
=
"
$1
"
local
build_dir
=
"
$2
"
local
build_dir
=
"
$2
"
echo
"export PATH=
\"
$build_dir
/.heroku/node/bin:
$build_dir
/.heroku/yarn/bin:
\$
PATH:
$build_dir
/node_modules/.bin
\"
"
>
$bp_dir
/export
echo
"export NODE_HOME=
\"
$build_dir
/.heroku/node
\"
"
>>
$bp_dir
/export
# only write the export script if the buildpack directory is writable.
# this may occur in situations outside of Heroku, such as running the
# buildpacks locally.
if
[
-w
${
bp_dir
}
]
;
then
echo
"export PATH=
\"
$build_dir
/.heroku/node/bin:
$build_dir
/.heroku/yarn/bin:
\$
PATH:
$build_dir
/node_modules/.bin
\"
"
>
$bp_dir
/export
echo
"export NODE_HOME=
\"
$build_dir
/.heroku/node
\"
"
>>
$bp_dir
/export
fi
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment