We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9d2842d + 302b2e8 commit aa8ba5bCopy full SHA for aa8ba5b
tests/integration/helpers.bash
@@ -132,7 +132,8 @@ function init_cgroup_paths() {
132
CGROUP_SUBSYSTEMS=$(awk '!/^#/ {print $1}' /proc/cgroups)
133
local g base_path
134
for g in ${CGROUP_SUBSYSTEMS}; do
135
- base_path=$(awk '$(NF-2) == "cgroup" && $NF ~ /\<'"${g}"'\>/ { print $5; exit }' /proc/self/mountinfo)
+ # This uses gawk-specific feature (\< ... \>).
136
+ base_path=$(gawk '$(NF-2) == "cgroup" && $NF ~ /\<'"${g}"'\>/ { print $5; exit }' /proc/self/mountinfo)
137
test -z "$base_path" && continue
138
eval CGROUP_"${g^^}"_BASE_PATH="${base_path}"
139
done
0 commit comments