Skip to content

Commit d14f0a1

Browse files
committed
minor change
1 parent f740346 commit d14f0a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/accessibility-automation/helper.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,10 @@ exports.setAccessibilityEventListeners = (bsConfig) => {
244244
}
245245

246246
// Build the correct glob pattern
247+
const cwd_path = process.cwd();
247248
const globPattern = supportFilesData.supportFile.startsWith('/')
248-
? process.cwd() + supportFilesData.supportFile
249-
: path.resolve(process.cwd(),supportFilesData.supportFile);
249+
? cwd_path + supportFilesData.supportFile
250+
: path.resolve(cwd_path,supportFilesData.supportFile);
250251

251252
glob(globPattern, {}, (err, files) => {
252253
if(err) {

0 commit comments

Comments
 (0)