diff options
author | merakor <cem@ckyln.com> | 2022-01-03 12:46:31 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2022-01-03 12:46:31 +0000 |
commit | 54230e00aaafef589b5253c4c8b07d433f3c281b (patch) | |
tree | 599add5242e364761b1825fdce59445448ac0268 /src/cpt-install | |
parent | 80b0810359bfbfef818a4a8f7e348c8270a0ccbe (diff) | |
download | cpt-54230e00aaafef589b5253c4c8b07d433f3c281b.tar.gz |
cpt-install: print messages properly when target is a tarball
FossilOrigin-Name: 09795719d3065672b59a4f6a68737664a013d8b238b65d29779582a652ee41a9
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 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)" \ |