fix(shellcheck): fix mangled backslashes with read
Fixes SC2162 https://github.com/koalaman/shellcheck/wiki/SC2162
This commit is contained in:
parent
8683c4d974
commit
8a87104009
2
flash
2
flash
|
|
@ -213,7 +213,7 @@ while [[ -z $PREVIEWER_PARAMTERS ]]; do
|
||||||
case $PREVIEWER in
|
case $PREVIEWER in
|
||||||
bat) PREVIEWER_PARAMTERS="--theme='Solarized (dark)' --style=numbers --color=always" ;;
|
bat) PREVIEWER_PARAMTERS="--theme='Solarized (dark)' --style=numbers --color=always" ;;
|
||||||
cat) PREVIEWER_PARAMTERS="--number" ;;
|
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
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue