From c480666d9cc834537d967f85e14c0ac976f6539c Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 9 Oct 2019 16:23:50 +0200 Subject: [PATCH] Fix default working directory after attaching the container --- ynh-dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ynh-dev b/ynh-dev index 65a665d..2e8251a 100755 --- a/ynh-dev +++ b/ynh-dev @@ -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()