Skip to content

Commit

Permalink
Allow existing when input read
Browse files Browse the repository at this point in the history
  • Loading branch information
evertramos committed Jul 17, 2023
1 parent 22a6587 commit 2563097
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/common-read-user-input.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@

common_read_user_input()
{
trap '
trap - INT # restore default INT handler
kill -s INT "$$"
' INT

local LOCAL_USER_RESPONSE LOCAL_USER_TEXT

LOCAL_USER_TEXT="${1:-Please enter the required information:}"
Expand Down

0 comments on commit 2563097

Please sign in to comment.