diff --git a/lib/exec/add-host b/lib/exec/add-host index f0488b1..5be60b3 100755 --- a/lib/exec/add-host +++ b/lib/exec/add-host @@ -47,7 +47,7 @@ for _host in "${hosts[@]}"; do fi # Saltear si no el host existe y no estamos forzando o actualizando - if test -f "${_hostdest}"; then + if test -e "${_hostdest}"; then ${FORCE} && rm -f "${nodedir}/hosts/${_host}" fi