Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit f41bfa0

Browse files
committed
Allow the use of ~ in executablePath
1 parent 9c0a140 commit f41bfa0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const loadDeps = () => {
1616
helpers = require('atom-linter');
1717
}
1818
if (!fs) {
19-
fs = require('fs');
19+
fs = require('fs-plus');
2020
}
2121
};
2222

@@ -177,6 +177,9 @@ export default {
177177
execPath = localCssLintPath;
178178
}
179179
}
180+
} else {
181+
// Normalize any usage of ~
182+
fs.normalize(execPath);
180183
}
181184
return execPath;
182185
},

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"dependencies": {
2626
"atom-linter": "^10.0.0",
2727
"atom-package-deps": "^4.6.0",
28-
"csslint": "^1.0.5"
28+
"csslint": "^1.0.5",
29+
"fs-plus": "^3.0.1"
2930
},
3031
"devDependencies": {
3132
"eslint": "^4.3.0",

0 commit comments

Comments
 (0)