mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 16:40:07 -07:00
kiss: Fix ctrl+c block.
This commit is contained in:
parent
da0f1fd203
commit
ca9e19edeb
10
kiss
10
kiss
@ -674,15 +674,15 @@ pkg_install() {
|
|||||||
cp "$(command -v mkdir)" "$cac_dir"
|
cp "$(command -v mkdir)" "$cac_dir"
|
||||||
cp "$(command -v find)" "$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.
|
# Block being able to abort the script with 'Ctrl+C' during installation.
|
||||||
# Removes all risk of the user aborting a package installation leaving
|
# Removes all risk of the user aborting a package installation leaving
|
||||||
# an incomplete package installed.
|
# an incomplete package installed.
|
||||||
trap '' INT
|
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,
|
# Installation works by unpacking the tar-ball to a specified location,
|
||||||
# manually running 'mkdir' to create each directory and finally, using
|
# manually running 'mkdir' to create each directory and finally, using
|
||||||
# 'mv' to move each file.
|
# 'mv' to move each file.
|
||||||
@ -874,7 +874,7 @@ args() {
|
|||||||
|
|
||||||
# Print version and exit.
|
# Print version and exit.
|
||||||
v*)
|
v*)
|
||||||
log "$kiss 0.2.1"
|
log "$kiss 0.2.2"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Catch all invalid arguments as well as
|
# Catch all invalid arguments as well as
|
||||||
|
Loading…
Reference in New Issue
Block a user