Remove ignored statement --user root

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-04-14 17:01:24 +02:00
parent 88312371d3
commit d8045d5beb
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -3,7 +3,7 @@
pkgname=eslint-plugin-vue pkgname=eslint-plugin-vue
pkgver=7.9.0 pkgver=7.9.0
pkgrel=1 pkgrel=2
pkgdesc='ESLint Plugin for Vue.js' pkgdesc='ESLint Plugin for Vue.js'
arch=('any') arch=('any')
url='https://github.com/vuejs/eslint-plugin-vue' url='https://github.com/vuejs/eslint-plugin-vue'
@ -16,7 +16,7 @@ noextract=($pkgname-$pkgver.tgz)
package() { package() {
install -dm 755 "$pkgdir/usr/lib" install -dm 755 "$pkgdir/usr/lib"
npm install -g --user root --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz npm install -g --prefix "$pkgdir"/usr "$srcdir"/$pkgname-$pkgver.tgz
# Fix permissions # Fix permissions
find "$pkgdir/usr" -type d -exec chmod 755 '{}' + find "$pkgdir/usr" -type d -exec chmod 755 '{}' +