lib/preview: handle unbound parameter
If $BASH_PREVIEW is unset, treat it as blank.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
if [[ $BASH_PREVIEW ]];
|
if [[ "${BASH_PREVIEW:-}" ]];
|
||||||
then
|
then
|
||||||
unset BASH_PREVIEW #Prevent infinite looping
|
unset BASH_PREVIEW #Prevent infinite looping
|
||||||
echo "
|
echo "
|
||||||
|
|||||||
Reference in New Issue
Block a user