summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTim Yang2021-01-18 03:51:13 -0600
committerTim Yang2021-01-18 03:51:13 -0600
commit114a8307872a8eb413063600b563835b28dee39f (patch)
treeb2fb3b4bb48dfa8081c8982790b0e0c107698e91 /PKGBUILD
parent44ea3f3b7c1cc3f35cdd4324873165f2debd28f8 (diff)
downloadaur-114a8307872a8eb413063600b563835b28dee39f.tar.gz
Fix sanitize command (broken `file`)
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 65360393023..dabf96bdb3e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -54,8 +54,9 @@ package() {
# sanitize
rm -f "$pkgdir"/opt/$pkgname/bin/{$pkgname.exe,compile.{bat,make}}
- find "$pkgdir" -exec sh -c \
- "file '{}' | grep -qE 'ELF|executable|directory' && chmod 755 '{}' || chmod 644 '{}'" \;
+ # find "$pkgdir" -exec sh -c \
+ # "file '{}' | grep -qE 'ELF|executable|directory' && chmod 755 '{}' || chmod 644 '{}'" \;
+ find "$pkgdir" -exec sh -c "ls -Fd '{}' | grep -q '.*[/\*]$' && chmod 755 '{}' || chmod 644 '{}'" \;
chown -R root:root "$pkgdir"
# symlinks