X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=arch-init-remote;h=5bcfc3b7bff8153339bb8286d3e5eb6de94c919c;hp=770e33254444976602e36df04d6e06495357df7e;hb=bf19e9969f50a637c8fabf724eb9e292da472e01;hpb=46edfde8e1fbb4121d5d0661946fc419d042543d diff --git a/arch-init-remote b/arch-init-remote index 770e332..5bcfc3b 100755 --- a/arch-init-remote +++ b/arch-init-remote @@ -15,6 +15,13 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +usage() { + cat <&2' ERR if [[ ! $1 ]]; then echo "error: expect a hostname in \$1 " - exit 1 + usage 1 fi host=$1