Skip to content

Commit 42c9045

Browse files
authored
Merge pull request #9 from dirkgroenen/master
[fix] Enable interpretation when echoing /etc/hosts
2 parents 38e7c76 + ae82a38 commit 42c9045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/setup-hosts-file.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if [ ${QUESTION} == "a" ]; then
2626
echo -e ${YELLOW}"$HOSTNAME already exists: $(grep $HOSTNAME $ETC_HOSTS) ${NC}"
2727
else
2828
echo -e ${GREEN}"Adding $HOSTNAME to your $ETC_HOSTS ${NC}"
29-
sudo -- sh -c -e "echo '$HOSTS_LINE' >> /etc/hosts"
29+
sudo -- sh -c -e "echo -e '$HOSTS_LINE' >> /etc/hosts"
3030

3131
if [ -n "$(grep $HOSTNAME /etc/hosts)" ]; then
3232
echo -e ${GREEN}"$HOSTNAME was added succesfully \n $(grep $HOSTNAME /etc/hosts) ${NC}"

0 commit comments

Comments
 (0)