Skip to content
Merged
Show file tree
Hide file tree
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: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 13 additions & 2 deletions scripts/toggle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,19 @@ select_container() {

local id
while IFS= read -r id; do
if [[ -n "$id" ]] && [[ ! " ${auto_containers[*]} " =~ " ${id} " ]]; then
auto_containers+=("$id")
if [[ -n "$id" ]]; then
local is_duplicate=false
local existing_id
for existing_id in "${auto_containers[@]}"; do
if [[ "$existing_id" == "$id" ]]; then
is_duplicate=true
break
fi
done

if [[ "$is_duplicate" == false ]]; then
auto_containers+=("$id")
fi
fi
done <<< "$auto_container_lines"
done < <(get_auto_detect_paths "$win_path")
Expand Down
Loading