diff --git a/home/user/.config/git/hooks/pre-commit b/home/user/.config/git/hooks/pre-commit index abb470d..f509054 100755 --- a/home/user/.config/git/hooks/pre-commit +++ b/home/user/.config/git/hooks/pre-commit @@ -1,6 +1,6 @@ #!/bin/sh -if [ -e PKGBUILD ] -then +set -e +if command -v makepkg >/dev/null && [ -e PKGBUILD ]; then makepkg --printsrcinfo > .SRCINFO git add .SRCINFO exit