Skip to content

Commit

Permalink
Merge pull request #1 from Bloodb0ne/Windows-Shim-Fixes
Browse files Browse the repository at this point in the history
Fixes issue boltpkg#207
  • Loading branch information
Bloodb0ne authored Jan 6, 2019
2 parents 9ed8920 + 87c7ff8 commit 56dafad
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/utils/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,15 @@ function stripExtension(filePath: string) {
}

async function cmdShim(src: string, dest: string) {
const currentShimTarget = path.resolve(
path.dirname(src),
await readCmdShim(src)
);
var currentShimTarget = src;
try{
var currentShimTarget = path.resolve(
path.dirname(src),
await readCmdShim(src)
);
}catch(err){

}
await promisify(cb => _cmdShim(currentShimTarget, stripExtension(dest), cb));
}

Expand Down

0 comments on commit 56dafad

Please sign in to comment.