X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=pxe-server;h=32a422d7ea223a943727927661117641e52fd5ab;hb=fd75a734a7149cf203553d36270482af37e680da;hp=1e99b03a004447eb1124f1d1585b5aa33a919a5a;hpb=a69dd442e7381deaec866989a4944efa4f73a8c3;p=automated-distro-installer diff --git a/pxe-server b/pxe-server index 1e99b03..32a422d 100755 --- a/pxe-server +++ b/pxe-server @@ -18,11 +18,11 @@ [[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@" -readonly this_file="$(readlink -f -- "${BASH_SOURCE[0]}")" -script_dir="${this_file%/*}" -# shellcheck source=./bash-trace -source "${script_dir}/bash-trace" -cd $script_dir +set -e; . /usr/local/lib/bash-bear; set +e + +this_file="$(readlink -f -- "${BASH_SOURCE[0]}")" +readonly this_file this_dir="${this_file%/*}" +cd "$this_dir" PATH="$PATH:$PWD" @@ -221,12 +221,14 @@ set-pxe() { if $fsf_office; then if [[ ! $cmd ]]; then e "removing pxe for $host on tarantula" + # shellcheck disable=SC2087 # shellcheck being dumb ssh tarantula.office.fsf.org bash -e <