X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=install-chboot;h=d066101642454420d7664649dbc1f9fc88d61104;hb=cf778f7a65037a2a54e2b6008511f0a584326ce9;hp=838c0ae02e63565a37963088f8c65490734dc45d;hpb=cfe7d2a4eb0e0af4cd59df420f76ea4d5ee755fd;p=automated-distro-installer diff --git a/install-chboot b/install-chboot index 838c0ae..d066101 100755 --- a/install-chboot +++ b/install-chboot @@ -24,7 +24,7 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR # in case there is an issue booting and it is needed. # Run this when chboot changes. -cd "${BASH_SOURCE%/*}" +x=$(readlink -f "$BASH_SOURCE"); cd ${x%/*} e() { echo "$@"; "$@"; }