X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=install-chboot;h=acb6531f835a1888963070e41ea42215ae0309dc;hb=HEAD;hp=098b23220cb6355a4065b180c0f480badab0e733;hpb=d29d21017de635db1d05769144db56f44addd055;p=automated-distro-installer diff --git a/install-chboot b/install-chboot index 098b232..041302d 100755 --- a/install-chboot +++ b/install-chboot @@ -15,21 +15,20 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -[[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@" +[[ $EUID == 0 ]] || exec sudo -E "${BASH_SOURCE[0]}" "$@" -x="$(readlink -f "$BASH_SOURCE")"; source "${x%/*}/bash-trace" -cd ${x%/*} +set -e; . /usr/local/lib/bash-bear; set +e usage() { - cat </dev/null || continue if [[ -e $dir/boot ]]; then dir=$dir/boot