aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-03 11:39:43 +0000
committermerakor <cem@ckyln.com>2020-05-03 11:39:43 +0000
commit08a64b4ed7409014e848fde529905b906f86b3cd (patch)
tree870774f5e76ba70da18bdf922768c679788b48c4 /kiss
parent3f01e4a19592ecf8183f35d6623909b574f403d2 (diff)
downloadcpt-08a64b4ed7409014e848fde529905b906f86b3cd.tar.gz
kiss: return 1 if read is interrupted
FossilOrigin-Name: 0fe4b92e9d029f252e902e90412a193d2f25bbffd5e93b1b5117d5392dc8b220
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
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() {