cpt

Carbs Packaging Tools
git clone git://git.carbslinux.org/cpt
Log | Files | Refs | README | LICENSE

commit 66a876a81d882d39c0b0aa4a15f1fa88173c4243
parent 1a9e044bd712c44c03514c5cb8fa0332d3e55ffa
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 21 Aug 2020 23:58:14 +0300

run_hook: only show package if $2 is available.

Diffstat:
Msrc/cpt-lib | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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" }