diff options
author | merakor <cem@ckyln.com> | 2020-05-03 11:39:43 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-05-03 11:39:43 +0000 |
commit | 08a64b4ed7409014e848fde529905b906f86b3cd (patch) | |
tree | 870774f5e76ba70da18bdf922768c679788b48c4 /kiss | |
parent | 3f01e4a19592ecf8183f35d6623909b574f403d2 (diff) | |
download | cpt-08a64b4ed7409014e848fde529905b906f86b3cd.tar.gz |
kiss: return 1 if read is interrupted
FossilOrigin-Name: 0fe4b92e9d029f252e902e90412a193d2f25bbffd5e93b1b5117d5392dc8b220
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() { |