1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-10 17:37:37 +00:00

shellcheck: Fix shellcheck SC2066

> Since you double-quoted this, it will not word split, and the loop will only run once.

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman 2025-02-28 11:52:14 +00:00
parent b8cfdd06fb
commit b220cca253

View File

@ -167,7 +167,7 @@ function get_pss_memory_virtiofsd() {
data="$(sudo smem --no-header -P "^${virtiofsd_path}" -c "pid pss")"
for p in "${virtiofsd_pids}"; do
for p in ${virtiofsd_pids}; do
echo "get_pss_memory_virtiofsd: p=${p}"
parent_pid=$(ppid "${p}")
cmd="$(cat /proc/${p}/cmdline | tr -d '\0')"