aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)" \