mk: simplify xbmkpwd initialisation

do it from mk instead. we don't need to run pwd
anymore, because we just get the path and cd
to it, setting that as the path.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-09-14 11:20:39 +01:00
parent 16e04411f2
commit c0402ef642
2 changed files with 4 additions and 3 deletions
+1 -2
View File
@@ -12,11 +12,10 @@ sha512sum="util/sbase/sha512sum"
eval "`newvar aur_notice basetmp board checkvarschk checkvarsxbmk configdir \
datadir is_child python pyver reinstall relname version versiondate \
xbmklock xbmkpath xbmkpwd xbmkpwd xbtmp`"
xbmklock xbmkpath xbtmp`"
xbmk_init()
{
xbmkpwd="`pwd || err "Cannot generate PWD"`" || err "!" xbmk_init "$@"
xbmklock="$xbmkpwd/lock"
basetmp="$xbmkpwd/xbmkwd"
sha512sum="$xbmkpwd/util/sbase/sha512sum"
+3 -1
View File
@@ -21,7 +21,9 @@ xbarg0="$0"
[ "${xbarg0##*/}" = "$xbarg0" ] && \
xbarg0="`command -v "$xbarg0"`"
x_ cd "`findpath "$xbarg0"`"
xbmkpwd="$(dirname "$(findpath "$xbarg0")")"
x_ cd "$xbmkpwd"
. "include/env/init.sh"
x_ xbmk_init "$@"