Skip to content

Commit

Permalink
fix(jshint): Corrected jshint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k committed Oct 21, 2017
1 parent d6a360a commit eed46f4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ whichDeferred.promise
}
})
.then(function (stdout) {
var regex = /^Version: ([0-9\.]+)$/
var regex = /^Version: ([0-9\.]+)$/;
var result = stdout.trim().match(regex);
var version = result[1];
if (helper.version === version) {
Expand Down Expand Up @@ -139,10 +139,10 @@ function downloadAndInstallGalen() {
fs.chmodSync(location + '/galen/galen', '755');
fs.chmodSync(location + '/galen/galen.bat', '755');
replace({
files: location + '/galen/galen.bat',
replace: 'com.galenframework.GalenMain %*',
with: 'com.galenframework.GalenMain %* -Djna.nosys=true'
},
files: location + '/galen/galen.bat',
replace: 'com.galenframework.GalenMain %*',
with: 'com.galenframework.GalenMain %* -Djna.nosys=true'
},
function (error, changedFiles) {
//Catch errors
if (error) {
Expand Down Expand Up @@ -308,7 +308,7 @@ function requestBinary(requestOptions, filePath) {
}
})).on('progress', function (state) {
if (!bar) {
bar = new Progress(' [:bar] :percent :etas', { total: state.total, width: 40 });
bar = new Progress(' [:bar] :percent :etas', {total: state.total, width: 40});
}
bar.curr = state.received;
bar.tick(0);
Expand All @@ -330,7 +330,7 @@ function extractDownload(filePath, requestOptions, retry) {
// extract to a unique directory in case multiple processes are
// installing and extracting at once
var extractedPath = filePath + '-extract-' + Date.now();
var options = { cwd: extractedPath };
var options = {cwd: extractedPath};

fs.mkdirsSync(extractedPath, '0777');
// Make double sure we have 0777 permissions; some operating systems
Expand Down

0 comments on commit eed46f4

Please sign in to comment.