aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cpt-lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpt-lib b/src/cpt-lib
index c841da1..c6736b1 100644
--- a/src/cpt-lib
+++ b/src/cpt-lib
@@ -118,7 +118,7 @@ run_hook() {
[ -f "$CPT_HOOK" ] || return 0
- log "$2" "Running $1 hook"
+ [ "$2" ] && log "$2" "Running $1 hook"
TYPE=${1:-null} PKG=${2:-null} DEST=${3:-null} . "$CPT_HOOK"
}