Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/shared/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,9 @@ install_editor_extensions() {
typeset -a to_remove
for ext in "${installed[@]}"; do
[[ -z "$ext" ]] && continue
if [[ -z "${wanted_map[${ext:l}]}" ]]; then
# `:-` is required: under `set -u`, reading a missing associative-array key
# is a fatal zsh error (kills the whole script, not catchable with `||`).
if [[ -z "${wanted_map[${ext:l}]:-}" ]]; then
to_remove+=("$ext")
fi
done
Expand Down