X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=install-chboot;h=041302df3904e109b8b669dfb113551904eb1fda;hb=fd75a734a7149cf203553d36270482af37e680da;hp=acb6531f835a1888963070e41ea42215ae0309dc;hpb=a69dd442e7381deaec866989a4944efa4f73a8c3;p=automated-distro-installer diff --git a/install-chboot b/install-chboot index acb6531..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 fi - e install -m 755 -o root -g root bash-trace $dir e install -m 755 -o root -g root chboot $dir done e umount $mount_point