lib/preview: handle unbound parameter

If $BASH_PREVIEW is unset, treat it as blank.
pull/1903/head
John D Pell 2021-07-25 21:09:51 -07:00
parent 02c13b7921
commit bcd67db4ab
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
if [[ $BASH_PREVIEW ]];
if [[ "${BASH_PREVIEW:-}" ]];
then
unset BASH_PREVIEW #Prevent infinite looping
echo "