X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=myfai-chboot;h=aa3c0881152c3f48c530a3ce4d58dfb08e65b3c2;hb=HEAD;hp=a653ae6a020240208dbb20913d1bcf5b673762f1;hpb=917771b2981e75635e9b85d14eb73105fcf591b4;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