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