aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-12-12 21:57:57 +0000
committermerakor <cem@ckyln.com>2021-12-12 21:57:57 +0000
commit56b134697a7d8fdc5e146dc9e544bdd7a8713ba5 (patch)
treeb8d522a5ce59d901e2dd52b7f75f6c9f26b7b1b0
parent0433f8389ffa09ceb5d75c34666f904f3680520c (diff)
downloadcpt-56b134697a7d8fdc5e146dc9e544bdd7a8713ba5.tar.gz
cpt-install: print messages properly when target is a tarball
FossilOrigin-Name: da9d390eec590a0894658cf8dcfb82f9bc8b9bbd6ec2ba92d98ac4a0a81f00e0
-rwxr-xr-xsrc/cpt-install3
1 files changed, 3 insertions, 0 deletions
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)" \