yymaxapi 1.0.21 → 1.0.22
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/bin/yymaxapi.js +1 -1
- package/package.json +1 -1
package/bin/yymaxapi.js
CHANGED
|
@@ -630,7 +630,7 @@ function getWslCliBinary() {
|
|
|
630
630
|
if (_wslCliBinaryCache !== undefined) return _wslCliBinaryCache;
|
|
631
631
|
for (const name of ['openclaw', 'clawdbot', 'moltbot']) {
|
|
632
632
|
try {
|
|
633
|
-
const result = execFileSync('wsl', ['bash', '-
|
|
633
|
+
const result = execFileSync('wsl', ['bash', '-lc', `which ${name} 2>/dev/null`], { encoding: 'utf8', timeout: 5000 }).trim();
|
|
634
634
|
if (result && result.startsWith('/')) {
|
|
635
635
|
_wslCliBinaryCache = result;
|
|
636
636
|
return _wslCliBinaryCache;
|