Skip to content

Instantly share code, notes, and snippets.

@nosada
Last active February 6, 2021 16:40
Show Gist options
  • Save nosada/12b272b659cb1c2ddc4130d0bd2d003a to your computer and use it in GitHub Desktop.
Save nosada/12b272b659cb1c2ddc4130d0bd2d003a to your computer and use it in GitHub Desktop.
Add read permission to /usr/bin/tor-browser prorived by https://aur.archlinux.org/packages/tor-browser/ because it sometimes lacks read permission for others (i.e. equals to 0751 in chmod)
diff --git a/PKGBUILD b/PKGBUILD
index 71c3695..78682f3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -142,7 +142,7 @@ package() {
install -dm755 "${pkgdir}/usr/bin"
sed "${_sed_subst}" "${pkgname}.in" > "${pkgdir}/usr/bin/${pkgname}"
- chmod +x "${pkgdir}/usr/bin/${pkgname}"
+ chmod +rx "${pkgdir}/usr/bin/${pkgname}"
install -Dm 644 "${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment