diff --git a/gravity.sh b/gravity.sh index 1c1c397f..9ddd7beb 100755 --- a/gravity.sh +++ b/gravity.sh @@ -243,7 +243,11 @@ gravity_unique() { gravity_hostFormat() { # Format domain list as "192.168.x.x domain.com" echo -n "::: Formatting domains into a HOSTS file..." - rm ${localList} + + if [[ -f ${localList} ]]; then + rm ${localList} + fi + if [[ -f /etc/hostname ]]; then hostname=$(