Skip to content

Commit

Permalink
Merge pull request #36 from likun7981/fix/qnap_find
Browse files Browse the repository at this point in the history
fix: qnap find -inum bug
  • Loading branch information
likun7981 authored Nov 23, 2021
2 parents 4ea6890 + 1fabdd3 commit af5cf6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export function getLinkPath(
const out = execa.sync('ls', ['-i', file]).stdout
const fileNumber = out.split(' ')[0]
let findOut: boolean | string = false
destPath = path.join(destPath, '/');
findOut = execa.sync('find', [destPath, '-inum', fileNumber]).stdout
return findOut
? findOut.split('\n').map(p => (deleteDir ? path.dirname(p) : p))
Expand Down

1 comment on commit af5cf6f

@vercel
Copy link

@vercel vercel bot commented on af5cf6f Nov 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.