no need to remove list, because of echo >
This commit is contained in:
parent
8591f9d576
commit
a3d519b671
|
@ -244,10 +244,6 @@ gravity_hostFormat() {
|
||||||
# Format domain list as "192.168.x.x domain.com"
|
# Format domain list as "192.168.x.x domain.com"
|
||||||
echo -n "::: Formatting domains into a HOSTS file..."
|
echo -n "::: Formatting domains into a HOSTS file..."
|
||||||
|
|
||||||
if [[ -f ${localList} ]]; then
|
|
||||||
rm ${localList}
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -f /etc/hostname ]]; then
|
if [[ -f /etc/hostname ]]; then
|
||||||
hostname=$(</etc/hostname)
|
hostname=$(</etc/hostname)
|
||||||
elif [ -x "$(command -v hostname)" ]; then
|
elif [ -x "$(command -v hostname)" ]; then
|
||||||
|
|
Loading…
Reference in New Issue