diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-14 11:11:04 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-14 11:11:04 +0100 |
| commit | 16e04411f209c88f214ce84cfa2c42c3af1c8408 (patch) | |
| tree | 9df37708cc2c85eb85e159ec2b2c067337ef4bc6 | |
| parent | b09cd4ada4b92f42b5584fc7c40cca28d185b758 (diff) | |
mk: include lib.sh earlier
this means we can now cd to wrkdir using findpath,
and it means the cd command can be wrapped in x_
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rwxr-xr-x | mk | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -15,17 +15,14 @@ eval "`printf "LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE \ awk '{ for (i=1; i<=NF; i++) $i = "export " $i "=C.UTF-8;"; print }'`" ( +. "include/lib.sh" + xbarg0="$0" [ "${xbarg0##*/}" = "$xbarg0" ] && \ xbarg0="`command -v "$xbarg0"`" -commandv="`readlink -f "$xbarg0" 2>/dev/null`" -[ -z "$commandv" ] && \ - commandv="`realpath "$xbarg0" 2>/dev/null`" +x_ cd "`findpath "$xbarg0"`" -cd "${commandv%/*}" || exit 1 - -. "include/lib.sh" . "include/env/init.sh" x_ xbmk_init "$@" |
