Commit f986a1e9 authored by Troy Engel's avatar Troy Engel

add cleanup when exiting from IP error

parent b6ad749b
......@@ -203,6 +203,7 @@ else
fi
if [[ -z "${NEWIP}" ]]; then
logmsg "Error getting an IP address, exiting."
cleanup
exit 1
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment