From 92a1f63c9e69d790d76af53a5c4918f90bf5490a Mon Sep 17 00:00:00 2001 From: thek4n Date: Fri, 22 Dec 2023 22:26:04 +0300 Subject: [PATCH] ref pre commit hook for makepkg --- home/user/.config/git/hooks/pre-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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