Skip to content

fix: Fix build.sh failed if multiple sockets/files in a single directory.#28

Merged
enderice2 merged 4 commits into
enderice2:masterfrom
Billli11:multiple-ipc
Apr 5, 2026
Merged

fix: Fix build.sh failed if multiple sockets/files in a single directory.#28
enderice2 merged 4 commits into
enderice2:masterfrom
Billli11:multiple-ipc

Conversation

@Billli11

@Billli11 Billli11 commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

If there are multiple files in a single directory that match discord ipc sockets name (Can be files or symlinks).
The scripts will failed to find any socket in that directory with the error

./bridge.sh: line 26: [: too many arguments
./bridge.sh: line 26: [: too many arguments

The first commit fix some warning with shellcheck

SC2155 (warning): Declare and assign separately to avoid masking return values.
SC3028 (warning): In POSIX sh, UID is undefined.
SC2144 (error): -S doesn't work with globs. Use a for loop.

@enderice2 enderice2 merged commit 4b91c17 into enderice2:master Apr 5, 2026
@Billli11 Billli11 deleted the multiple-ipc branch April 6, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants