From 8a8710400942a38c3ef77ecf2668e25f62d0ff08 Mon Sep 17 00:00:00 2001 From: jsnal Date: Fri, 15 May 2020 15:00:24 -0400 Subject: [PATCH] fix(shellcheck): fix mangled backslashes with read Fixes SC2162 https://github.com/koalaman/shellcheck/wiki/SC2162 --- flash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flash b/flash index 0e7ffbb..1f63108 100755 --- a/flash +++ b/flash @@ -213,7 +213,7 @@ while [[ -z $PREVIEWER_PARAMTERS ]]; do case $PREVIEWER in bat) PREVIEWER_PARAMTERS="--theme='Solarized (dark)' --style=numbers --color=always" ;; cat) PREVIEWER_PARAMTERS="--number" ;; - *) echo -e "$PREVIEWER is not a valid previewer. Use 'bat' or 'cat'. Falling back on default..." && read -s -p 'Press [Enter] to continue...' && PREVIEWER='bat' ;; + *) echo -e "$PREVIEWER is not a valid previewer. Use 'bat' or 'cat'. Falling back on default..." && read -r -s -p 'Press [Enter] to continue...' && PREVIEWER='bat' ;; esac done