Skip to content

Commit 8300591

Browse files
committed
fix: should print String correctly
1 parent 07e6d15 commit 8300591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oclif/commands/run/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default class RunScript extends AICommand {
8585
result = result.content
8686
}
8787
if (!userConfig.interactive && result != null) {
88-
this.log(typeof result === 'string' ? result : cj(result))
88+
this.log(typeof result === 'string' || result instanceof String ? '' + result : cj(result))
8989
}
9090
return result
9191
} catch (error: any) {

0 commit comments

Comments
 (0)