Skip to content

Commit f01a343

Browse files
committed
perf-scripts: Fix argument passing in prof-cog script
Replace `$@` with `$*` to ensure that all command-line arguments are passed correctly as a single word to the `cog` command. This change prevents issues with argument handling when arguments contain spaces or special characters. Fixes SC2145 (error): Argument mixes string and array. Use * or separate argument.
1 parent e5064c4 commit f01a343

File tree

1 file changed

+1
-1
lines changed
  • recipes-benchmark/perf-scripts/files

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
export COG_PLATFORM_FDO_VIEW_FULLSCREEN=1
33

4-
psrecord --include-children --interval 5 --log cog.log "cog -P fdo --webprocess-failure=exit --cookie-store=always --cookie-jar=text:$HOME/.cache/cog-cookies.txt --enable-webaudio=0 --enable-mediasource=1 --enable-media-capabilities=1 $@"
4+
psrecord --include-children --interval 5 --log cog.log "cog -P fdo --webprocess-failure=exit --cookie-store=always --cookie-jar=text:$HOME/.cache/cog-cookies.txt --enable-webaudio=0 --enable-mediasource=1 --enable-media-capabilities=1 $*"

0 commit comments

Comments
 (0)