We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38e7c76 + ae82a38 commit 42c9045Copy full SHA for 42c9045
cli/setup-hosts-file.sh
@@ -26,7 +26,7 @@ if [ ${QUESTION} == "a" ]; then
26
echo -e ${YELLOW}"$HOSTNAME already exists: $(grep $HOSTNAME $ETC_HOSTS) ${NC}"
27
else
28
echo -e ${GREEN}"Adding $HOSTNAME to your $ETC_HOSTS ${NC}"
29
- sudo -- sh -c -e "echo '$HOSTS_LINE' >> /etc/hosts"
+ sudo -- sh -c -e "echo -e '$HOSTS_LINE' >> /etc/hosts"
30
31
if [ -n "$(grep $HOSTNAME /etc/hosts)" ]; then
32
echo -e ${GREEN}"$HOSTNAME was added succesfully \n $(grep $HOSTNAME /etc/hosts) ${NC}"
0 commit comments