Skip to content

Commit cf7bdc3

Browse files
authored
Merge pull request #2 from JeffLeFoll/master
Little improvements
2 parents b75a453 + 9138406 commit cf7bdc3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ var run = require('gulp-run');
55
module.exports = function resolver (bower) {
66
return {
77
match: function (source) {
8-
return source.indexOf('svn+https://') === 0;
8+
return source.indexOf('svn+https://') === 0
9+
|| source.indexOf('svn+http://') === 0;
910
},
1011

1112
// no normalisation required
@@ -76,9 +77,11 @@ module.exports = function resolver (bower) {
7677
if(err)
7778
reject("Error during SVN checkout: "+err);
7879
else {
79-
// ensure the folder is accessible
80-
run('chmod -R ugo+X '+tempDir.name).exec();
81-
80+
81+
if ('win32' !== process.platform) {
82+
run('chmod -R +X '+ tempDir.name).exec();
83+
}
84+
8285
resolve({
8386
tempPath: tempDir.name,
8487
removeIgnores: true

0 commit comments

Comments
 (0)