From 1099303cfe176b8374ff732579b2175b96209110 Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 21 Aug 2020 20:58:14 +0000 Subject: run_hook: only show package if $2 is available. FossilOrigin-Name: 4da4abf26a685da9cbfc2eaa194f56ac19bc0fc8ca8aa9f8eca05447cfeda12b --- src/cpt-lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } -- cgit v1.2.3