Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
9c6933f4
Commit
9c6933f4
authored
Apr 01, 2016
by
Michael Mifsud
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1435 from xzyfer/fix/binary-verification
Fix a regression in binary verification
parents
7c247165
0fa5e5eb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
extensions.js
lib/extensions.js
+7
-1
install.js
scripts/install.js
+2
-2
No files found.
lib/extensions.js
View file @
9c6933f4
...
@@ -167,7 +167,6 @@ function getBinaryUrl() {
...
@@ -167,7 +167,6 @@ function getBinaryUrl() {
* callers wants to throw if file not exists before
* callers wants to throw if file not exists before
* returning.
* returning.
*
*
* @param {Boolean} throwIfNotExists
* @api public
* @api public
*/
*/
...
@@ -189,6 +188,13 @@ function getBinaryPath() {
...
@@ -189,6 +188,13 @@ function getBinaryPath() {
return
binaryPath
;
return
binaryPath
;
}
}
/**
* Does the supplied binary path exist
*
* @param {String} binaryPath
* @api public
*/
function
hasBinary
(
binaryPath
)
{
function
hasBinary
(
binaryPath
)
{
return
fs
.
existsSync
(
binaryPath
);
return
fs
.
existsSync
(
binaryPath
);
}
}
...
...
scripts/install.js
View file @
9c6933f4
...
@@ -81,7 +81,7 @@ function applyProxy(options, cb) {
...
@@ -81,7 +81,7 @@ function applyProxy(options, cb) {
*/
*/
function
checkAndDownloadBinary
()
{
function
checkAndDownloadBinary
()
{
if
(
sass
.
getBinaryPath
(
))
{
if
(
sass
.
hasBinary
(
sass
.
getBinaryPath
()
))
{
return
;
return
;
}
}
...
@@ -97,7 +97,7 @@ function checkAndDownloadBinary() {
...
@@ -97,7 +97,7 @@ function checkAndDownloadBinary() {
return
;
return
;
}
}
console
.
log
(
'Binary downloaded and installed at'
,
sass
.
b
inaryPath
());
console
.
log
(
'Binary downloaded and installed at'
,
sass
.
getB
inaryPath
());
});
});
});
});
}
}
...
...
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