Skip to content

Commit 3c0291e

Browse files
nkakourosniieani
authored andcommitted
Fix more unbound variables (#34)
1 parent 9833d3f commit 3c0291e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/UI/Color.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ else
7474
alias UI.Color.NoInvisible="echo"
7575
fi
7676

77-
alias UI.Powerline.IsAvailable="UI.Color.IsAvailable && test -z \$NO_UNICODE && (echo -e $'\u1F3B7' | grep -v F3B7) &> /dev/null"
77+
alias UI.Powerline.IsAvailable="UI.Color.IsAvailable && test -z \${NO_UNICODE-} && (echo -e $'\u1F3B7' | grep -v F3B7) &> /dev/null"
7878
if UI.Powerline.IsAvailable
7979
then
8080
alias UI.Powerline.PointingArrow="echo -e $'\u27a1'"

lib/UI/Color.var.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ else
7676
UI_Color_NoInvisible=""
7777
fi
7878

79-
alias UI.Powerline.IsAvailable="UI.Color.IsAvailable && test -z \$NO_UNICODE && (echo -e $'\u1F3B7' | grep -v F3B7) &> /dev/null"
79+
alias UI.Powerline.IsAvailable="UI.Color.IsAvailable && test -z \${NO_UNICODE-} && (echo -e $'\u1F3B7' | grep -v F3B7) &> /dev/null"
8080
if UI.Powerline.IsAvailable
8181
then
8282
UI_Powerline_PointingArrow=$'\u27a1'

lib/oo-bootstrap.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
### BOOTSTRAP FUNCTIONS ###
55
###########################
66

7-
if [[ -n "$__INTERNAL_LOGGING__" ]]
7+
if [[ -n "${__INTERNAL_LOGGING__:-}" ]]
88
then
99
alias DEBUG=":; "
1010
else
@@ -132,7 +132,7 @@ System::SourceFile() {
132132
then
133133
## if already imported let's return
134134
# if declare -f "Array::Contains" &> /dev/null &&
135-
if [[ "${__oo__allowFileReloading}" != true ]] && [[ ! -z "${__oo__importedFiles[*]}" ]] && Array::Contains "$libPath" "${__oo__importedFiles[@]}"
135+
if [[ "${__oo__allowFileReloading-}" != true ]] && [[ ! -z "${__oo__importedFiles[*]}" ]] && Array::Contains "$libPath" "${__oo__importedFiles[@]}"
136136
then
137137
# DEBUG subject=level3 Log "File previously imported: ${libPath}"
138138
return 0

0 commit comments

Comments
 (0)