aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pbuilder-runhooks6
1 files changed, 1 insertions, 5 deletions
diff --git a/pbuilder-runhooks b/pbuilder-runhooks
index fbb9e75..0b921b0 100644
--- a/pbuilder-runhooks
+++ b/pbuilder-runhooks
@@ -53,11 +53,7 @@ function unloadhooks () {
if [ -z "$HOOKDIR" ]; then
return ;
fi
- if [ -d "$BUILDPLACE/$hooks" ]; then
- rm -rf "$BUILDPLACE/$hooks"
- else
- log "E: Logic failure in hook handling. Directory $BUILDPLACE/$hooks should exist but it does not."
- fi
+ rm -rf "$BUILDPLACE/$hooks"
}
#--------------------------------------------------------------------------