From 08a64b4ed7409014e848fde529905b906f86b3cd Mon Sep 17 00:00:00 2001
From: merakor <cem@ckyln.com>
Date: Sun, 3 May 2020 11:39:43 +0000
Subject: kiss: return 1 if read is interrupted

FossilOrigin-Name: 0fe4b92e9d029f252e902e90412a193d2f25bbffd5e93b1b5117d5392dc8b220
---
 kiss | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kiss b/kiss
index 7ac64dc..af3af96 100755
--- a/kiss
+++ b/kiss
@@ -46,7 +46,7 @@ prompt() {
     # POSIX 'read' has none of the "nice" options like '-n', '-p'
     # etc etc. This is the most basic usage of 'read'.
     # '_' is used as 'dash' errors when no variable is given to 'read'.
-    read -r _
+    read -r _ || return 1
 }
 
 as_root() {
-- 
cgit v1.2.3