opencode-landstrip 0.16.10 → 0.16.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +1 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -668,7 +668,7 @@ function buildWrappedCommand(
|
|
|
668
668
|
// If both fail (no bash, dead port, set -e in the outer shell) landstrip runs
|
|
669
669
|
// without --trap-fd so the toast-notify path still works.
|
|
670
670
|
const trapped = [landstripBinaryPath(), '--trap-fd', '3', ...baseArgs].map(shellQuote).join(' ');
|
|
671
|
-
const bashTrap = `bash -c ${shellQuote(`exec 3<>/dev/tcp/127.0.0.1/${trapPort} && exec "$@"`)} bash ${trapped}`;
|
|
671
|
+
const bashTrap = `bash -c ${shellQuote(`exec 3<>/dev/tcp/127.0.0.1/${trapPort} 2>/dev/null && exec "$@"`)} bash ${trapped}`;
|
|
672
672
|
return `{ exec 3<>/dev/tcp/127.0.0.1/${trapPort} ; } 2>/dev/null && ${trapped} || ${bashTrap} 2>/dev/null || ${plain}`;
|
|
673
673
|
}
|
|
674
674
|
|