diff options
| author | Leah Rowe <leah@libreboot.org> | 2025-05-03 06:53:25 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2025-05-03 07:01:19 +0100 | 
| commit | 00d22f20829251f55cd2e859d6fae9a61220c072 (patch) | |
| tree | abbb4f8ecddffb52da6fb4b623ec91832a210028 /include/init.sh | |
| parent | 0f7b3691abafdbb46ea8e7bc95332da9d4be80d2 (diff) | |
lbmk: Unified local ./tmp handling
Make it an absolute directory, relative to xbmktmp.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/init.sh')
| -rw-r--r-- | include/init.sh | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/include/init.sh b/include/init.sh index c40894a1..a5180d07 100644 --- a/include/init.sh +++ b/include/init.sh @@ -17,11 +17,13 @@ xbmkpath="$PATH"  err="err_"  eval "`setvars "" _nogit board reinstall versiondate aur_notice configdir \ -    datadir version xbmkpwd relname xbmkpwd xbmktmp python pyver`" +    datadir version xbmkpwd relname xbmkpwd xbmktmp python pyver xbmklocal`"  xbmk_init()  {  	xbmkpwd="`pwd`" || $err "Cannot generate PWD" +	xbmklocal="$xbmkpwd/tmp" +  	export PWD="$xbmkpwd"  	if [ $# -gt 0 ] && [ "$1" = "dependencies" ]; then @@ -197,7 +199,7 @@ xbmk_create_tmpdir()  	# /tmp might be a tmpfs, so for large files we use ./tmp,  	# not to be confused with xbmktmp (xbmktmp points to /tmp) -	x_ mkdir -p "$xbmktmp" tmp +	x_ mkdir -p "$xbmktmp" "$xbmklocal"  }  xbmk_lock() @@ -223,7 +225,7 @@ xbmk_child_exec()  {  	xbmk_rval=0  	( x_ ./mk "$@" ) || xbmk_rval=1 -	rm -Rf tmp "$xbmktmp" || xbmk_rval=1 +	rm -Rf "$xbmklocal" "$xbmktmp" || xbmk_rval=1  	rm -f lock || xbmk_rval=1  	exit $xbmk_rval  } | 
