lib.sh: more useful lock message

Signed-off-by: Leah Rowe <leah@libreboot.org>
20240612_branch
Leah Rowe 2024-06-09 15:44:20 +01:00
parent e80c4b73ce
commit 78426a97e5
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ if [ "$tmpdir_was_set" = "y" ]; then
[ "${TMPDIR%_*}" = "/tmp/xbmk" ] || tmpdir_was_set="n"
fi
if [ "$tmpdir_was_set" = "n" ]; then
[ -f "lock" ] && $err "The 'lock' file exists. Is a build running?"
[ -f "lock" ] && \
$err "$PWD/lock exists. If a build isn't going, delete and re-run."
export TMPDIR="/tmp"
tmpdir="$(mktemp -d -t xbmk_XXXXXXXX)"
export TMPDIR="$tmpdir"