Commit cf7f1bab authored by Hynek Baran's avatar Hynek Baran

hostname .local bug fixed

parent 6bd9fc85
......@@ -3,6 +3,7 @@ BaseDir=${HOSTNAME//[-+]/_}
if [[ ${BaseDir} != ${BaseDir//local/} ]] ; then
BaseDir=${BaseDir//local/}
echo "Warning: \$HOSTNAME='${HOSTNAME}' contains 'local', network is probably broken." >&2
echo -n "localhost"
else
echo -n $BaseDir
fi
echo -n $BaseDir
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