From ba89056292054adca8711459579c2580594fd60a Mon Sep 17 00:00:00 2001 From: dancer Date: Wed, 25 Sep 2002 08:55:44 +0000 Subject: + * pbuilder-runhooks (hooks): do not error out if there are no hooks in the hookdir. --- pbuilder-runhooks | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pbuilder-runhooks') diff --git a/pbuilder-runhooks b/pbuilder-runhooks index dcd3261..3c2f4a9 100644 --- a/pbuilder-runhooks +++ b/pbuilder-runhooks @@ -18,6 +18,9 @@ # # HISTORY: # $Log$ +# Revision 1.14 2002/09/25 08:55:44 dancer +# + * pbuilder-runhooks (hooks): do not error out if there are no hooks in the hookdir. +# # Revision 1.13 2002/02/24 12:06:55 dancer # release is ready, I've checked. # @@ -83,7 +86,9 @@ function loadhooks () { fi if [ -d "$HOOKDIR" ]; then mkdir -p "$BUILDPLACE/$hooks" - cp -a "$HOOKDIR/"* "$BUILDPLACE/$hooks" + if ! cp -a "$HOOKDIR/"* "$BUILDPLACE/$hooks"; then + echo "W: no hooks found on the hookdir" + fi fi } -- cgit v1.2.3