Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
fether
Commits
489e5383
Commit
489e5383
authored
Mar 22, 2019
by
Amaury Martiny
Committed by
Thibaut Sardan
Mar 22, 2019
Browse files
fix: correctly set permissions on downloaded binary (#472)
* fix: correctly set permissions on downloaded binary * Add comment
parent
674e3bf3
Pipeline
#33553
passed with stages
in 9 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
scripts/fetch-latest-parity.js
View file @
489e5383
...
...
@@ -125,7 +125,7 @@ function downloadParity () {
// Write to file and set a+x permissions
const
destinationPath
=
`
${
STATIC_DIRECTORY
}
/
${
name
}
`
;
return
fsWriteFile
(
destinationPath
,
data
)
.
then
(()
=>
fsChmod
(
destinationPath
,
755
))
.
then
(()
=>
fsChmod
(
destinationPath
,
0o
755
))
// https://nodejs.org/api/fs.html#fs_fs_chmod_path_mode_callback
.
then
(()
=>
destinationPath
);
});
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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