diff options
author | merakor <cem@ckyln.com> | 2021-12-12 21:57:57 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-12-12 21:57:57 +0000 |
commit | 56b134697a7d8fdc5e146dc9e544bdd7a8713ba5 (patch) | |
tree | b8d522a5ce59d901e2dd52b7f75f6c9f26b7b1b0 /src/cpt-install | |
parent | 0433f8389ffa09ceb5d75c34666f904f3680520c (diff) | |
download | cpt-56b134697a7d8fdc5e146dc9e544bdd7a8713ba5.tar.gz |
cpt-install: print messages properly when target is a tarball
FossilOrigin-Name: da9d390eec590a0894658cf8dcfb82f9bc8b9bbd6ec2ba92d98ac4a0a81f00e0
Diffstat (limited to 'src/cpt-install')
-rwxr-xr-x | src/cpt-install | 3 |
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)" \ |