Laravel_pc_perso/scripts/hosts-reset.sh
2024-06-12 13:02:54 +02:00

8 lines
286 B
Bash

#!/usr/bin/env bash
# Remove any Homestead entries from /etc/hosts and prepare for adding new ones.
sudo sed -i '/#### HOMESTEAD-SITES-BEGIN/,/#### HOMESTEAD-SITES-END/d' /etc/hosts
printf "#### HOMESTEAD-SITES-BEGIN\n#### HOMESTEAD-SITES-END\n" | sudo tee -a /etc/hosts > /dev/null