cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit ca9e19edebeee300f3163fda40aeb7744290464b
parent da0f1fd203fb70ba9af43507ec11ab948b654531
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Fri,  5 Jul 2019 09:34:06 +0300

kiss: Fix ctrl+c block.

Diffstat:
Mkiss | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/kiss b/kiss @@ -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