From 56b134697a7d8fdc5e146dc9e544bdd7a8713ba5 Mon Sep 17 00:00:00 2001 From: merakor Date: Sun, 12 Dec 2021 21:57:57 +0000 Subject: cpt-install: print messages properly when target is a tarball FossilOrigin-Name: da9d390eec590a0894658cf8dcfb82f9bc8b9bbd6ec2ba92d98ac4a0a81f00e0 --- src/cpt-install | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cpt-install') diff --git a/src/cpt-install b/src/cpt-install index b64d5a0..af8b7ff 100755 --- a/src/cpt-install +++ b/src/cpt-install @@ -28,6 +28,9 @@ log "Retrieving post-installation message queue" unset msg for pkg in $order; do + # Ensure that we use package names itself, and not the tarball name if given. + pkg=${pkg##*/} pkg=${pkg%#*} + [ -f "$sys_db/$pkg/message" ] && { printf '\033[1m%s\n%s\n%s\033[m\n\n' \ "$(_multiply_char '=' 60)" \ -- cgit v1.2.3