diff options
author | dancer <dancer> | 2002-09-25 08:55:44 +0000 |
---|---|---|
committer | dancer <dancer> | 2002-09-25 08:55:44 +0000 |
commit | ba89056292054adca8711459579c2580594fd60a (patch) | |
tree | 8a3f57977335c9af2f6d2d39ed2aba5df2fcbae7 /pbuilder-runhooks | |
parent | c7574bf3cc036b064486269ea60110be21fbbad8 (diff) | |
download | pbuilder-ba89056292054adca8711459579c2580594fd60a.tar pbuilder-ba89056292054adca8711459579c2580594fd60a.tar.gz |
+ * pbuilder-runhooks (hooks): do not error out if there are no hooks in the hookdir.
Diffstat (limited to 'pbuilder-runhooks')
-rw-r--r-- | pbuilder-runhooks | 7 |
1 files changed, 6 insertions, 1 deletions
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 } |