aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-runhooks
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-10-13 17:47:30 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-10-13 17:48:13 +0000
commit5cd1f5e92353bb228a422222d998e7fd6fd0a7ae (patch)
tree207f42a7d1a891deba0f09ad55bebdb6e14e3080 /pbuilder-runhooks
parentb1dd8c3c3a35f1966fe353b0b20070deda8955d4 (diff)
downloadpbuilder-5cd1f5e92353bb228a422222d998e7fd6fd0a7ae.tar
pbuilder-5cd1f5e92353bb228a422222d998e7fd6fd0a7ae.tar.gz
pbuilder-runhooks: let unloadhooks don't fail if there are no hooks loaded
This way we can call it also when hooks are not actually loaded or two times in a row without fear the result.
Diffstat (limited to 'pbuilder-runhooks')
-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"
}
#--------------------------------------------------------------------------