From 3f601af76ce4c2f3dc0bfa3036f94e0ab26a02af Mon Sep 17 00:00:00 2001 From: dancer Date: Sun, 16 Nov 2003 07:08:54 +0000 Subject: + * THANKS: add + + * pbuilder-runhooks: fix warning messages to be more correct, thanks + to Daniel Martin. + --- pbuilder-runhooks | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'pbuilder-runhooks') diff --git a/pbuilder-runhooks b/pbuilder-runhooks index e6e662e..ee1e9c3 100644 --- a/pbuilder-runhooks +++ b/pbuilder-runhooks @@ -18,6 +18,13 @@ # # HISTORY: # $Log$ +# Revision 1.16 2003/11/16 07:08:54 dancer +# + * THANKS: add +# + +# + * pbuilder-runhooks: fix warning messages to be more correct, thanks +# + to Daniel Martin. +# + +# # Revision 1.15 2003/03/10 10:02:11 dancer # +2003-03-10 Junichi Uekawa # + @@ -159,8 +166,12 @@ function executehooks () { $CHROOTEXEC "$hooks/"$(basename "$fn") echo " -> user script $fn finished" else - filetype=$(basename "$fn" ) - echo "W: execute priv not set on file $filetype, not executing." + if [ -f "$fn" ]; then + filetype=$(basename "$fn" ) + echo "W: execute priv not set on file $filetype, not executing." + else + echo "W: no hooks of type ${prefix} found" + fi fi ;; esac -- cgit v1.2.3