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.
1 parent 1fad917 commit 0811d85Copy full SHA for 0811d85
virtualhost.sh
@@ -105,7 +105,7 @@ if [ "$action" == 'create' ]
105
### Add domain in /mnt/c/Windows/System32/drivers/etc/hosts (Windows Subsytem for Linux)
106
if [ -e /mnt/c/Windows/System32/drivers/etc/hosts ]
107
then
108
- if ! echo "127.0.0.1 $domain" >> /mnt/c/Windows/System32/drivers/etc/hosts
+ if ! echo -e "\r127.0.0.1 $domain" >> /mnt/c/Windows/System32/drivers/etc/hosts
109
110
echo $"ERROR: Not able to write in /mnt/c/Windows/System32/drivers/etc/hosts (Hint: Try running Bash as administrator)"
111
else
0 commit comments