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
eaca7485
Commit
eaca7485
authored
Aug 23, 2018
by
Robin Richtsfeld
Committed by
Jeremy Morrell
Aug 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some Bash issues (#505)
parent
778ad489
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
binaries.sh
lib/binaries.sh
+2
-2
utils
test/utils
+1
-1
No files found.
lib/binaries.sh
View file @
eaca7485
...
@@ -28,7 +28,7 @@ install_yarn() {
...
@@ -28,7 +28,7 @@ install_yarn() {
install_nodejs
()
{
install_nodejs
()
{
local
version
=
${
1
:-
8
.x
}
local
version
=
${
1
:-
8
.x
}
local dir
=
"
$
2
"
local dir
=
"
$
{
2
:?
}
"
echo
"Resolving node version
$version
..."
echo
"Resolving node version
$version
..."
if
!
read
number url < <
(
curl
--silent
--get
--retry
5
--retry-max-time
15
--data-urlencode
"range=
$version
"
"https://nodebin.herokai.com/v1/node/
$platform
/latest.txt"
)
;
then
if
!
read
number url < <
(
curl
--silent
--get
--retry
5
--retry-max-time
15
--data-urlencode
"range=
$version
"
"https://nodebin.herokai.com/v1/node/
$platform
/latest.txt"
)
;
then
...
@@ -41,7 +41,7 @@ install_nodejs() {
...
@@ -41,7 +41,7 @@ install_nodejs() {
echo
"Unable to download node:
$code
"
&&
false
echo
"Unable to download node:
$code
"
&&
false
fi
fi
tar
xzf /tmp/node.tar.gz
-C
/tmp
tar
xzf /tmp/node.tar.gz
-C
/tmp
rm
-rf
$dir
/
*
rm
-rf
"
$dir
"
/
*
mv
/tmp/node-v
$number
-
$os
-
$cpu
/
*
$dir
mv
/tmp/node-v
$number
-
$os
-
$cpu
/
*
$dir
chmod
+x
$dir
/bin/
*
chmod
+x
$dir
/bin/
*
}
}
...
...
test/utils
View file @
eaca7485
...
@@ -36,7 +36,7 @@ capture()
...
@@ -36,7 +36,7 @@ capture()
LAST_COMMAND
=
"
$@
"
LAST_COMMAND
=
"
$@
"
$@
>
${
STD_OUT
}
2>
${
STD_ERR
}
"
$@
"
>
${
STD_OUT
}
2>
${
STD_ERR
}
RETURN
=
$?
RETURN
=
$?
rtrn
=
${
RETURN
}
# deprecated
rtrn
=
${
RETURN
}
# deprecated
}
}
...
...
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