build: simplified TMPDIR handling
Signed-off-by: Leah Rowe <leah@libreboot.org>9020vga
parent
ab65ea4c99
commit
2f98ca6dab
9
build
9
build
|
@ -18,12 +18,7 @@ eval "$(setvars "" option aur_notice tmpdir)"
|
||||||
tmpdir_was_set="y"
|
tmpdir_was_set="y"
|
||||||
set | grep TMPDIR 1>/dev/null 2>/dev/null || tmpdir_was_set="n"
|
set | grep TMPDIR 1>/dev/null 2>/dev/null || tmpdir_was_set="n"
|
||||||
if [ "${tmpdir_was_set}" = "y" ]; then
|
if [ "${tmpdir_was_set}" = "y" ]; then
|
||||||
tmpdir="${TMPDIR##*/}"
|
[ "${TMPDIR%_*}" = "/tmp/lbmk" ] || tmpdir_was_set="n"
|
||||||
tmpdir="${TMPDIR%_*}"
|
|
||||||
if [ "${tmpdir}" = "lbmk" ]; then
|
|
||||||
tmpdir=""
|
|
||||||
tmpdir_was_set="n"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
if [ "${tmpdir_was_set}" = "n" ]; then
|
if [ "${tmpdir_was_set}" = "n" ]; then
|
||||||
export TMPDIR="/tmp"
|
export TMPDIR="/tmp"
|
||||||
|
@ -31,8 +26,8 @@ if [ "${tmpdir_was_set}" = "n" ]; then
|
||||||
export TMPDIR="${tmpdir}"
|
export TMPDIR="${tmpdir}"
|
||||||
else
|
else
|
||||||
export TMPDIR="${TMPDIR}"
|
export TMPDIR="${TMPDIR}"
|
||||||
|
tmpdir="${TMPDIR}"
|
||||||
fi
|
fi
|
||||||
tmpdir="${TMPDIR}"
|
|
||||||
|
|
||||||
linkpath="${0}"
|
linkpath="${0}"
|
||||||
linkname="${linkpath##*/}"
|
linkname="${linkpath##*/}"
|
||||||
|
|
Loading…
Reference in New Issue