Skip to content

Commit

Permalink
fix: use $srcdir
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed Dec 13, 2018
1 parent dbe49c2 commit a172805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/npm-pkgbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ build() {
}
package() {
${Object.keys(pkg.bin||{}).map(n => `install -Dm755 ${pkg.bin[n]} "\${pkgdir}/${pkg.bin[n]}"`).join('\n ')}
install node_modules "\${pkgdir}/node_modules"
${Object.keys(pkg.bin||{}).map(n => `install -Dm755 "\${srcdir}/${pkg.bin[n]}" "\${pkgdir}/${pkg.bin[n]}"`).join('\n ')}
install "\${srcdir}/node_modules" "\${pkgdir}/node_modules"
}
`
);
Expand Down

0 comments on commit a172805

Please sign in to comment.