From 0834c49b04fe8350b84f9e92dc254cea3d46c85f Mon Sep 17 00:00:00 2001 From: e-lie <1651436+e-lie@users.noreply.github.com> Date: Sat, 26 Aug 2017 18:34:55 +0200 Subject: [PATCH] Suggested command doesn't work (#32) --- ynh-dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ynh-dev b/ynh-dev index 636a0ea..a7f9d32 100755 --- a/ynh-dev +++ b/ynh-dev @@ -190,7 +190,7 @@ VERSION as stable, testing or unstable /!\ " IP_LINE="\s\s*${VMNAME}.vm.network\s\s*:private_network,\s*ip:\s*\"" IP=$(grep "$IP_LINE" Vagrantfile | sed "s/${IP_LINE}//" | tr -d '"') echo "/!\ Please add '$IP $DOMAIN' to your /etc/hosts file /!\\" - echo "sudo sh -s 'echo \"$IP $DOMAIN\" >> /etc/hosts'" + echo "sudo bash -c 'echo \"$IP $DOMAIN\" >> /etc/hosts'" echo "" # Log into the VM