X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=myfai-chboot;h=aa3c0881152c3f48c530a3ce4d58dfb08e65b3c2;hb=fd75a734a7149cf203553d36270482af37e680da;hp=a653ae6a020240208dbb20913d1bcf5b673762f1;hpb=a69dd442e7381deaec866989a4944efa4f73a8c3;p=automated-distro-installer diff --git a/myfai-chboot b/myfai-chboot index a653ae6..aa3c088 100755 --- a/myfai-chboot +++ b/myfai-chboot @@ -19,13 +19,15 @@ set -eE -o pipefail trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR -x=$(readlink -f "$BASH_SOURCE"); cd ${x%/*} +this_file="$(readlink -f -- "${BASH_SOURCE[0]}")" +readonly this_file this_dir="${this_file%/*}" +cd "$this_dir" usage() { - cat </dev/null; then ./myfai-chboot-local "$@" else