X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=install-chboot;h=d066101642454420d7664649dbc1f9fc88d61104;hp=838c0ae02e63565a37963088f8c65490734dc45d;hb=83828fe2683227f4d8ecb2343eff28439741b490;hpb=2f13039525488532756a089b8329ab6ee64a6c17 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 "$@"; "$@"; }