diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-05 06:34:06 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-05 06:34:06 +0000 |
commit | 1e7d9bd4d7d613b1540fa64ae20c75cea3ef2741 (patch) | |
tree | a85f9fedd6d497fccc8e41cf6eef7d74e6ecd0c3 /kiss | |
parent | 199482be58e2ad0edc8b7eaba7916c0ab4d2837d (diff) | |
download | cpt-1e7d9bd4d7d613b1540fa64ae20c75cea3ef2741.tar.gz |
kiss: Fix ctrl+c block.
FossilOrigin-Name: a082cf1bbd16a17a90b55536139985d48680b8da1820629ddf4e81ba07e80059
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -674,15 +674,15 @@ pkg_install() { cp "$(command -v mkdir)" "$cac_dir" cp "$(command -v find)" "$cac_dir" + log "[$pkg_name]: Removing previous version of package if it exists." + pkg_remove "$pkg_name" + log "[$pkg_name]: Installing package..." + # Block being able to abort the script with 'Ctrl+C' during installation. # Removes all risk of the user aborting a package installation leaving # an incomplete package installed. trap '' INT - log "[$pkg_name]: Removing previous version of package if it exists." - pkg_remove "$pkg_name" - log "[$pkg_name]: Installing package..." - # Installation works by unpacking the tar-ball to a specified location, # manually running 'mkdir' to create each directory and finally, using # 'mv' to move each file. @@ -874,7 +874,7 @@ args() { # Print version and exit. v*) - log "$kiss 0.2.1" + log "$kiss 0.2.2" ;; # Catch all invalid arguments as well as |