X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;ds=sidebyside;f=mymk-basefile;h=d2b4328792fd3f53129c80dc6093f164e6cb796f;hb=HEAD;hp=62f2924bfbb2431d13bff7ca8530accdb914fdca;hpb=839b3cf02ad7e8900b3d685d54449f11e7b60b60;p=automated-distro-installer diff --git a/mymk-basefile b/mymk-basefile index 62f2924..1f32665 100755 --- a/mymk-basefile +++ b/mymk-basefile @@ -16,12 +16,15 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -x="$(readlink -f "$BASH_SOURCE")"; source "${x%/*}/bash-trace" -script_dir="${x%/*}" +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" usage() { - cat <