Fix default working directory after attaching the container

This commit is contained in:
Alexandre Aubin 2019-10-09 16:23:50 +02:00
parent ce7bd7e1ee
commit c480666d9c

View file

@ -162,7 +162,7 @@ function attach_ynhdev()
check_lxd_setup
local BOX=${1:-ynh-dev}
sudo lxc start $BOX 2>/dev/null || true
sudo lxc exec $BOX -- /bin/bash
sudo lxc exec $BOX --cwd /ynh-dev -- /bin/bash
}
function destroy_ynhdev()