Skip to content

Commit f7dff35

Browse files
committed
Add hint if write to Windows hosts file fails
1 parent 46239f8 commit f7dff35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtualhost.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ if [ "$action" == 'create' ]
107107
then
108108
if ! echo "127.0.0.1 $domain" >> /mnt/c/Windows/System32/drivers/etc/hosts
109109
then
110-
echo $"ERROR: Not able to write in /mnt/c/Windows/System32/drivers/etc/hosts"
110+
echo $"ERROR: Not able to write in /mnt/c/Windows/System32/drivers/etc/hosts (Hint: Try running Bash as administrator)"
111111
else
112112
echo -e $"Host added to /mnt/c/Windows/System32/drivers/etc/hosts file \n"
113113
fi

0 commit comments

Comments
 (0)