lib/preview: handle unbound parameter

If $BASH_PREVIEW is unset, treat it as blank.
This commit is contained in:
John D Pell
2021-07-25 21:09:51 -07:00
parent 02c13b7921
commit bcd67db4ab

View File

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