Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
kiss: Fix ctrl+c block.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Jul 5, 2019
1 parent da0f1fd commit ca9e19e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kiss
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ca9e19e

Please sign in to comment.