X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mymk-basefile;h=03ef01e4a5cdbd69723656e7aff403eb32f92ec0;hb=HEAD;hp=9dc7b14ce49aad00dc12349b0ba46022172b811f;hpb=936324619541130f4ab07bd4633f48eb81812613;p=automated-distro-installer diff --git a/mymk-basefile b/mymk-basefile index 9dc7b14..03ef01e 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 <