Line 35 in this script is:
if [ $CGROUP == "cgroup2" ]; then
So, it looks like the following line didn't return the expected value. CGROUP=$(grep "/sys/fs/cgroup" /proc/mounts | cut -d' ' -f1)
Line 35 in this script is:
if [ $CGROUP == "cgroup2" ]; then
So, it looks like the following line didn't return the expected value.
CGROUP=$(grep "/sys/fs/cgroup" /proc/mounts | cut -d' ' -f1)