Commit 8aba484a by Stéphane Graber

lxc-ls: Use readlink on $directory

lxc-ls was failing in cases where $directory is a symlink to another directory. Instead have $directory be generated from the output of readlink -f "$lxc_path". Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 5d01f616
...@@ -70,7 +70,7 @@ get_parent_cgroup() ...@@ -70,7 +70,7 @@ get_parent_cgroup()
done done
} }
directory="$lxc_path" directory=$(readlink -f "$lxc_path")
for i in "$@"; do for i in "$@"; do
case $i in case $i in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment