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
cfbec2a2
Commit
cfbec2a2
authored
Jul 27, 2017
by
Jeremy Morrell
Committed by
Jeremy Morrell
Oct 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add BUILD_DIR to env var blacklist
parent
b9827816
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
environment.sh
lib/environment.sh
+1
-1
No files found.
lib/environment.sh
View file @
cfbec2a2
...
...
@@ -40,7 +40,7 @@ export_env_dir() {
local
env_dir
=
$1
if
[
-d
"
$env_dir
"
]
;
then
local
whitelist_regex
=
${
2
:-
''
}
local
blacklist_regex
=
${
3
:-
'^(PATH|GIT_DIR|CPATH|CPPATH|LD_PRELOAD|LIBRARY_PATH|LANG)$'
}
local
blacklist_regex
=
${
3
:-
'^(PATH|GIT_DIR|CPATH|CPPATH|LD_PRELOAD|LIBRARY_PATH|LANG
|BUILD_DIR
)$'
}
if
[
-d
"
$env_dir
"
]
;
then
for
e
in
$(
ls
$env_dir
)
;
do
echo
"
$e
"
|
grep
-E
"
$whitelist_regex
"
|
grep
-qvE
"
$blacklist_regex
"
&&
...
...
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