cpt

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

commit eee299c45e30bd1f9c91b2acf71dcb37a8ced57e
parent 253ac668d946b599fdaf30f6cc1f32f289c5ccd7
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri,  1 May 2020 23:43:38 +0300

kiss: fix interrupts in Korn Shell

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

diff --git a/kiss b/kiss @@ -1460,6 +1460,11 @@ main() { KISS_ROOT=${KISS_ROOT%/} } + # On 'ksh', Ctrl + C does not send an interrupt signal by default. + # This would cause a prompt to pass while the user would be trying + # to cancel, or the user would want to abort building a package. + stty intr "^C" + # This allows for automatic setup of a KISS chroot and will # do nothing on a normal system. mkdir -p "${sys_db:=$KISS_ROOT/$pkg_db}" 2>/dev/null ||: