aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2022-01-03 12:46:31 +0000
committermerakor <cem@ckyln.com>2022-01-03 12:46:31 +0000
commit54230e00aaafef589b5253c4c8b07d433f3c281b (patch)
tree599add5242e364761b1825fdce59445448ac0268 /src
parent80b0810359bfbfef818a4a8f7e348c8270a0ccbe (diff)
downloadcpt-54230e00aaafef589b5253c4c8b07d433f3c281b.tar.gz
cpt-install: print messages properly when target is a tarball
FossilOrigin-Name: 09795719d3065672b59a4f6a68737664a013d8b238b65d29779582a652ee41a9
Diffstat (limited to 'src')
-rwxr-xr-xsrc/cpt-install3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cpt-install b/src/cpt-install
index bcefe88..8bafba6 100755
--- a/src/cpt-install
+++ b/src/cpt-install
@@ -32,6 +32,9 @@ unset msg
run_hook end-install "" "$CPT_ROOT"
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)" \