X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=arch-init-remote;h=09525434c90e5f22a3b702f7de769dab085c76f1;hp=c7f6110ac3323aabef7404a8c5f486a3447577df;hb=HEAD;hpb=e6da963744f05fc92ba515f1544fbbc0773f4d2f diff --git a/arch-init-remote b/arch-init-remote index c7f6110..d8e4e29 100755 --- a/arch-init-remote +++ b/arch-init-remote @@ -1,34 +1,55 @@ -#!/bin/bash -lx +#!/bin/bash +# Copyright (C) 2019 Ian Kelling +# SPDX-License-Identifier: AGPL-3.0-or-later +if [[ -s ~/.bashrc ]];then . ~/.bashrc;fi +set -x set -eE -o pipefail -trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?"' ERR +trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR +usage() { + cat <