From: Jameson Graef Rollins Date: Thu, 19 Feb 2009 07:50:38 +0000 (-0500) Subject: fail if hostname can not be determined in import_key X-Git-Tag: monkeysphere_0.23~47^2~2 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=321ff6d4c721f2f699c57874335ce792c456a19a;hp=2ab50bee3f2cc4030cb4555b6c9644e3c206141e;p=monkeysphere.git fail if hostname can not be determined in import_key --- diff --git a/src/share/mh/import_key b/src/share/mh/import_key index cca40fa..bca7319 100644 --- a/src/share/mh/import_key +++ b/src/share/mh/import_key @@ -21,7 +21,7 @@ hostName="$1" # use the default hostname if not specified if [ -z "$hostName" ] ; then - hostName=$(hostname -f) + hostName=$(hostname -f) || failure "Could not determine hostname." # test that the domain is not obviously illegitimate domain=${foo##*.} case $domain in