summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-09 15:44:20 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-09 15:44:20 +0100
commit78426a97e57d3cfe77d8189a10a3c10125284426 (patch)
tree2aac88d9387f875fe62808104afd7a0be7ff8a5b /include
parente80c4b73ceb10c38a93c769e681afb947d9dfb1c (diff)
lib.sh: more useful lock message
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/lib.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/lib.sh b/include/lib.sh
index b41645fb..c2ad87ed 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -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"