Skip to content

Commit

Permalink
Merge pull request #6 from hrueger/master
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Sep 25, 2022
2 parents 571dcad + 2f280e6 commit b161e4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/util/index.js
@@ -1,5 +1,5 @@
const {
statSync,
lstatSync,
existsSync,
openSync,
readSync,
Expand Down Expand Up @@ -43,7 +43,7 @@ function splitPath (archivePath) {
if (isAsarDisabled()) return r
if (typeof archivePath !== 'string') return r
if (archivePath.endsWith('.asar')) {
if (existsSync(archivePath) && statSync(archivePath).isFile()) {
if (existsSync(archivePath) && lstatSync(archivePath).isFile()) {
r.isAsar = true
r.asarPath = tryRedirectUnpacked(archivePath)
r.filePath = ''
Expand All @@ -57,7 +57,7 @@ function splitPath (archivePath) {

const archive = archivePath.substring(0, index + 5)

if (existsSync(archive) && statSync(archive).isFile()) {
if (existsSync(archive) && lstatSync(archive).isFile()) {
r.isAsar = true
r.asarPath = tryRedirectUnpacked(archive)
r.filePath = archivePath.substring(index + 6)
Expand Down

0 comments on commit b161e4b

Please sign in to comment.