Skip to content

Commit e41a434

Browse files
committed
best offense
1 parent c0600c3 commit e41a434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/functions/general/extensions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ function initialize_extension_manager() {
277277
278278
for hook_point_function in ${hook_point_functions}; do
279279
opt_out=false
280-
if [[ ${#extension_optout[@]} -ne 0 ]]; then
280+
if [[ -v extension_optout && ${#extension_optout[@]} -ne 0 ]]; then
281281
# most common case this array is empty/non-existent, so bail out soonest
282282
for func in "${extension_optout[@]}"; do
283283
if [[ "$func" == "${hook_point}__${hook_point_function}" ]]; then

0 commit comments

Comments
 (0)