diff options
author | Caleb Maclennan | 2020-02-15 17:41:37 +0300 |
---|---|---|
committer | Caleb Maclennan | 2020-02-15 17:41:37 +0300 |
commit | 6bedfbbe77d20dffa1f0822ebbc1c80aff96e9c1 (patch) | |
tree | b47813f4274241703415aa8d08146627ffa38b9e | |
parent | 773eae281e1c411d058b6296a445c2f67c0d771f (diff) | |
download | aur-6bedfbbe77d20dffa1f0822ebbc1c80aff96e9c1.tar.gz |
Cleanup bash shell quoting using shellharden
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -16,8 +16,8 @@ sha256sums=('1a7fa84101fb2212110a41543e88bca26d3b9762bce63c95627ac0dbdf4d5a3a') noextract=("${source[@]##*/}") package() { - npm install -g --user root --cache "${srcdir}/npm-cache" --prefix "$pkgdir/usr" "${source[@]##*/}" - find "${pkgdir}"/usr -type d -exec chmod 755 {} + - find "${pkgdir}" -type f -name package.json -exec sed -i -e "/${pkgdir//\//\\/}/d" -e "/${srcdir//\//\\/}/d" {} \; - chown -R root:root $pkgdir + npm install -g --user root --cache "$srcdir/npm-cache" --prefix "$pkgdir/usr" "${source[@]##*/}" + find "$pkgdir"/usr -type d -exec chmod 755 {} + + find "$pkgdir" -type f -name package.json -exec sed -i -e "/${pkgdir//\//\\/}/d" -e "/${srcdir//\//\\/}/d" {} \; + chown -R root:root "$pkgdir" } |